Home
last modified time | relevance | path

Searched refs:sf_command (Results 1 – 25 of 44) sorted by relevance

12

/third_party/libsnd/tests/
Dpeak_chunk_test.c144 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_TRUE) ; in test_float_peak()
145 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_FALSE) ; in test_float_peak()
146 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_TRUE) ; in test_float_peak()
174 if (sf_command (file, SFC_GET_SIGNAL_MAX, data, sizeof (double)) == SF_FALSE) in test_float_peak()
184 …if (sf_command (file, SFC_GET_MAX_ALL_CHANNELS, data, sizeof (double) * sfinfo.channels) == SF_FAL… in test_float_peak()
196 sf_command (file, SFC_GET_LOG_INFO, log_buffer, LOG_BUFFER_SIZE) ; in test_float_peak()
211 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_FALSE) ; in test_float_peak()
212 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_TRUE) ; in test_float_peak()
213 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_FALSE) ; in test_float_peak()
226 if (sf_command (file, SFC_GET_SIGNAL_MAX, data, sizeof (double))) in test_float_peak()
[all …]
Dcommand_test.c105 sf_command (NULL, SFC_GET_LIB_VERSION, buffer, sizeof (buffer)) ; in main()
261 sf_command (file, SFC_SET_NORM_FLOAT, NULL, SF_FALSE) ; in float_norm_test()
307 sf_command (file, SFC_SET_NORM_FLOAT, NULL, SF_FALSE) ; in float_norm_test()
322 sf_command (file, SFC_SET_NORM_FLOAT, NULL, SF_TRUE) ; in float_norm_test()
378 sf_command (file, SFC_SET_NORM_DOUBLE, NULL, SF_FALSE) ; in double_norm_test()
423 sf_command (file, SFC_SET_NORM_DOUBLE, NULL, SF_FALSE) ; in double_norm_test()
438 sf_command (file, SFC_SET_NORM_DOUBLE, NULL, SF_TRUE) ; in double_norm_test()
474 sf_command (NULL, SFC_GET_SIMPLE_FORMAT_COUNT, &count, sizeof (int)) ; in format_tests()
482 sf_command (NULL, SFC_GET_SIMPLE_FORMAT, &format_info, sizeof (format_info)) ; in format_tests()
487 sf_command (NULL, SFC_GET_SIMPLE_FORMAT, &format_info, sizeof (format_info)) ; in format_tests()
[all …]
Dexternal_libs_test.c62 sf_command (NULL, SFC_GET_FORMAT_MAJOR_COUNT, &major_count, sizeof (int)) ; in major_format_test()
66 sf_command (NULL, SFC_GET_FORMAT_MAJOR, &info, sizeof (info)) ; in major_format_test()
92 sf_command (NULL, SFC_GET_FORMAT_SUBTYPE_COUNT, &subtype_count, sizeof (int)) ; in subtype_format_test()
96 sf_command (NULL, SFC_GET_FORMAT_SUBTYPE, &info, sizeof (info)) ; in subtype_format_test()
122 sf_command (NULL, SFC_GET_SIMPLE_FORMAT_COUNT, &simple_count, sizeof (int)) ; in simple_format_test()
126 sf_command (NULL, SFC_GET_SIMPLE_FORMAT, &info, sizeof (info)) ; in simple_format_test()
Dformat_check_test.c88 sf_command (NULL, SFC_GET_FORMAT_MAJOR_COUNT, &container_max, sizeof (container_max)) ; in format_combo_test()
89 sf_command (NULL, SFC_GET_FORMAT_SUBTYPE_COUNT, &codec_max, sizeof (codec_max)) ; in format_combo_test()
96 (void) sf_command (NULL, SFC_GET_FORMAT_MAJOR, &major_fmt_info, sizeof (major_fmt_info)) ; in format_combo_test()
108 …subtype_is_valid = sf_command (NULL, SFC_GET_FORMAT_SUBTYPE, &subtype_fmt_info, sizeof (subtype_fm… in format_combo_test()
Draw_test.c78 sf_command (sndfile, SFC_FILE_TRUNCATE, &start, sizeof (start)) ; in raw_offset_test()
103 sf_command (sndfile, SFC_SET_RAW_START_OFFSET, &start, sizeof (start)) ; in raw_offset_test()
118 sf_command (sndfile, SFC_SET_RAW_START_OFFSET, &start, sizeof (start)) ; in raw_offset_test()
133 sf_command (sndfile, SFC_SET_RAW_START_OFFSET, &start, sizeof (start)) ; in raw_offset_test()
Dmisc_test.c407 sf_command (file, SFC_WAVEX_SET_AMBISONIC, NULL, SF_AMBISONIC_B_FORMAT) ; in wavex_amb_test()
416 sf_command (file, SFC_WAVEX_GET_AMBISONIC, NULL, 0) != SF_AMBISONIC_B_FORMAT, in wavex_amb_test()
446 …exit_if_true (sf_command (file, SFC_RF64_AUTO_DOWNGRADE, NULL, SF_FALSE) != SF_FALSE, "\n\nLine %d… in rf64_downgrade_test()
447 …exit_if_true (sf_command (file, SFC_RF64_AUTO_DOWNGRADE, NULL, SF_TRUE) != SF_TRUE, "\n\nLine %d: … in rf64_downgrade_test()
451 …exit_if_true (sf_command (file, SFC_RF64_AUTO_DOWNGRADE, NULL, SF_FALSE) != SF_TRUE, "\n\nLine %d:… in rf64_downgrade_test()
452 …exit_if_true (sf_command (file, SFC_RF64_AUTO_DOWNGRADE, NULL, SF_TRUE) != SF_TRUE, "\n\nLine %d: … in rf64_downgrade_test()
504 …exit_if_true (sf_command (file, SFC_RF64_AUTO_DOWNGRADE, NULL, SF_TRUE) != SF_TRUE, "\n\nLine %d: … in rf64_long_file_downgrade_test()
Dogg_opus_test.c354 …if (sf_command (file, SFC_SET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplera… in ogg_opus_original_samplerate_test()
359 …if (sf_command (file, SFC_SET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplera… in ogg_opus_original_samplerate_test()
370 …if (sf_command (file, SFC_GET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplera… in ogg_opus_original_samplerate_test()
376 …if (sf_command (file, SFC_SET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplera… in ogg_opus_original_samplerate_test()
386 …if (sf_command (file, SFC_SET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplera… in ogg_opus_original_samplerate_test()
390 if (sf_command (file, SFC_GET_CURRENT_SF_INFO, &sfinfo, sizeof (sfinfo))) in ogg_opus_original_samplerate_test()
Dheader_test.tpl276 sf_command (outfile, SFC_UPDATE_HEADER_NOW, NULL, 0) ;
299 sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) ;
354 sf_command (outfile, SFC_UPDATE_HEADER_NOW, NULL, 0) ;
401 if (sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) == 0)
402 …{ printf ("\n\nError : sf_command (SFC_SET_UPDATE_HEADER_AUTO) return error : %s\n\n", sf_strerror…
462 sf_command (outfile, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_TRUE) ;
463 sf_command (outfile, SFC_UPDATE_HEADER_NOW, NULL, SF_FALSE) ;
464 sf_command (outfile, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_FALSE) ;
540 if (sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) == 0)
541 …{ printf ("\n\nError : sf_command (SFC_SET_UPDATE_HEADER_AUTO) return error : %s\n\n", sf_strerror…
Dscale_clip_test.tpl154 sf_command (file, SFC_SET_CLIPPING, NULL, SF_TRUE) ;
156 sf_command (file, SFC_SET_NORM_[+ (get "float_upper_name") +], NULL, SF_FALSE) ;
184 sf_command (file, SFC_SET_NORM_[+ (get "float_upper_name") +], NULL, SF_FALSE) ;
296 sf_command (file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE) ;
317 sf_command (file, SFC_SET_CLIPPING, NULL, SF_TRUE) ;
319 /*-sf_command (file, SFC_SET_NORM_[+ (get "float_upper_name") +], NULL, SF_FALSE) ;-*/
367 sf_command (file, SFC_SET_SCALE_INT_FLOAT_WRITE, NULL, SF_TRUE) ;
369 sf_command (file, SFC_SET_SCALE_INT_FLOAT_WRITE, NULL, SF_FALSE) ;
Ddither_test.c152 if (sf_command (file, SFC_SET_DITHER_ON_WRITE, NULL, SF_TRUE) == 0) in dither_test()
161 if (sf_command (file, SFC_SET_DITHER_ON_WRITE, &dither, sizeof (dither)) != 0) in dither_test()
Dcue_test.c28 if ((err = sf_command(file, SFC_GET_CUE_COUNT, &count, sizeof(uint32_t))) == SF_FALSE) in get_cues()
47 if (sf_command(file, SFC_GET_CUE, info, size) == SF_FALSE) in get_cues()
Dcompression_size_test.c144 sf_command (q3_file, SFC_SET_VBR_ENCODING_QUALITY, &quality, sizeof (quality)) ; in compression_size_test()
146 sf_command (q6_file, SFC_SET_VBR_ENCODING_QUALITY, &quality, sizeof (quality)) ; in compression_size_test()
Dsfversion.c36 sf_command (NULL, SFC_GET_LIB_VERSION, strbuffer, sizeof (strbuffer)) ; in main()
Dpcm_test.tpl288 sf_command (file, SFC_SET_NORM_FLOAT, NULL, SF_FALSE) ;
315 sf_command (file, SFC_SET_NORM_FLOAT, NULL, SF_FALSE) ;
351 sf_command (file, SFC_SET_NORM_DOUBLE, NULL, SF_FALSE) ;
378 sf_command (file, SFC_SET_NORM_DOUBLE, NULL, SF_FALSE) ;
425 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
444 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
552 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
571 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
684 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
703 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
[all …]
Dfloating_point_test.tpl220 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
229 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
273 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
282 sf_command (file, SFC_TEST_IEEE_FLOAT_REPLACE, NULL, replace_float) ;
346 sf_command (file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE) ;
/third_party/libsnd/examples/
Dlist_formats.c49 sf_command (NULL, SFC_GET_FORMAT_MAJOR_COUNT, &major_count, sizeof (int)) ; in main()
50 sf_command (NULL, SFC_GET_FORMAT_SUBTYPE_COUNT, &subtype_count, sizeof (int)) ; in main()
55 sf_command (NULL, SFC_GET_FORMAT_MAJOR, &info, sizeof (info)) ; in main()
62 sf_command (NULL, SFC_GET_FORMAT_SUBTYPE, &info, sizeof (info)) ; in main()
/third_party/pulseaudio/src/pulsecore/
Dsndfile-util.c41 if ((sf_errno = sf_command(sf, SFC_GET_CURRENT_SF_INFO, &sfi, sizeof(sfi)))) { in pa_sndfile_read_sample_spec()
187 if ((sf_errno = sf_command(sf, SFC_GET_CURRENT_SF_INFO, &sfi, sizeof(sfi)))) { in pa_sndfile_read_channel_map()
193 if (!sf_command(sf, SFC_GET_CHANNEL_MAP_INFO, channels, sizeof(channels[0]) * sfi.channels)) { in pa_sndfile_read_channel_map()
309 if (!sf_command(sf, SFC_SET_CHANNEL_MAP_INFO, channels, sizeof(channels[0]) * cm->channels)) { in pa_sndfile_write_channel_map()
353 if ((sf_errno = sf_command(sf, SFC_GET_CURRENT_SF_INFO, &sfi, sizeof(sfi)))) { in pa_sndfile_init_proplist()
360 if (sf_command(sf, SFC_GET_FORMAT_INFO, &fi, sizeof(fi)) == 0 && fi.name) { in pa_sndfile_init_proplist()
423 pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR_COUNT, &count, sizeof(int)) == 0); in pa_sndfile_format_from_string()
430 pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0); in pa_sndfile_format_from_string()
451 pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR_COUNT, &count, sizeof(int)) == 0); in pa_sndfile_dump_formats()
458 pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0); in pa_sndfile_dump_formats()
/third_party/libsnd/programs/
Dsndfile-convert.c393 if (sf_command (infile, SFC_GET_CHANNEL_MAP_INFO, chanmap, size) == SF_TRUE) in copy_metadata()
394 sf_command (outfile, SFC_SET_CHANNEL_MAP_INFO, chanmap, size) ; in copy_metadata()
397 if (sf_command (infile, SFC_GET_CUE, &cues, sizeof (cues)) == SF_TRUE) in copy_metadata()
398 sf_command (outfile, SFC_SET_CUE, &cues, sizeof (cues)) ; in copy_metadata()
400 if (sf_command (infile, SFC_GET_INSTRUMENT, &inst, sizeof (inst)) == SF_TRUE) in copy_metadata()
401 sf_command (outfile, SFC_SET_INSTRUMENT, &inst, sizeof (inst)) ; in copy_metadata()
403 if (sf_command (infile, SFC_GET_BROADCAST_INFO, &binfo, sizeof (binfo)) == SF_TRUE) in copy_metadata()
404 sf_command (outfile, SFC_SET_BROADCAST_INFO, &binfo, sizeof (binfo)) ; in copy_metadata()
Dsndfile-info.c230 sf_command (file, SFC_GET_LOG_INFO, strbuffer, BUFFER_LEN) ; in info_dump()
237 sf_command (file, SFC_GET_LOG_INFO, strbuffer, BUFFER_LEN) ; in info_dump()
256 sf_command (file, SFC_CALC_SIGNAL_MAX, &signal_max, sizeof (signal_max)) ; in info_dump()
300 got_inst = sf_command (file, SFC_GET_INSTRUMENT, &inst, sizeof (inst)) ; in instrument_dump()
342 got_bext = sf_command (file, SFC_GET_BROADCAST_INFO, &bext, sizeof (bext)) ; in broadcast_dump()
415 …got_chanmap = sf_command (file, SFC_GET_CHANNEL_MAP_INFO, channel_map, sfinfo.channels * sizeof (i… in chanmap_dump()
487 got_cart = sf_command (file, SFC_GET_CART_INFO, &cart, sizeof (cart)) ; in cart_dump()
Dcommon.c57 sf_command (infile, SFC_CALC_SIGNAL_MAX, &max, sizeof (max)) ; in sfe_copy_data_fp()
68 { sf_command (infile, SFC_SET_NORM_DOUBLE, NULL, SF_FALSE) ; in sfe_copy_data_fp()
133 if (sf_command (infile, SFC_GET_BROADCAST_INFO, &binfo, sizeof (binfo)) == 0) in merge_broadcast_info()
196 if (sf_command (outfile, SFC_SET_BROADCAST_INFO, &binfo, sizeof (binfo)) == 0) in merge_broadcast_info()
386 sf_command (NULL, SFC_GET_FORMAT_INFO, &info, sizeof (info)) ; in sfe_dump_format_map()
390 sf_command (NULL, SFC_GET_FORMAT_INFO, &info, sizeof (info)) ; in sfe_dump_format_map()
/third_party/libsnd/docs/
Dcommand.md3 title: libsndfile : the sf_command function.
6 # sf_command chapter
9 int sf_command (SNDFILE *sndfile, int cmd, void *data, int datasize) ;
109 sf_command (NULL, SFC_GET_LIB_VERSION, buffer, sizeof (buffer)) ;
146 sf_command (sndfile, SFC_GET_LOG_INFO, buffer, sizeof (buffer)) ;
183 sf_command (sndfile, SFC_GET_CURRENT_SF_INFO, sfinfo, sizeof (SF_INFO)) ;
213 sf_command (sndfile, SFC_CALC_SIGNAL_MAX, &max_val, sizeof (max_val)) ;
243 sf_command (sndfile, SFC_CALC_NORM_SIGNAL_MAX, &max_val, sizeof (max_val)) ;
273 sf_command (sndfile, SFC_CALC_MAX_ALL_CHANNELS, peaks, sizeof (peaks)) ;
303 sf_command (sndfile, SFC_CALC_NORM_MAX_ALL_CHANNELS, peaks, sizeof (peaks)) ;
[all …]
/third_party/libsnd/src/
Dcommand.c298 save_state = sf_command ((SNDFILE*) psf, SFC_GET_NORM_DOUBLE, NULL, 0) ; in psf_calc_signal_max()
299 sf_command ((SNDFILE*) psf, SFC_SET_NORM_DOUBLE, NULL, normalize) ; in psf_calc_signal_max()
321 sf_command ((SNDFILE*) psf, SFC_SET_NORM_DOUBLE, NULL, save_state) ; in psf_calc_signal_max()
341 save_state = sf_command ((SNDFILE*) psf, SFC_GET_NORM_DOUBLE, NULL, 0) ; in psf_calc_max_all_channels()
342 sf_command ((SNDFILE*) psf, SFC_SET_NORM_DOUBLE, NULL, normalize) ; in psf_calc_max_all_channels()
367 sf_command ((SNDFILE*) psf, SFC_SET_NORM_DOUBLE, NULL, save_state) ; in psf_calc_max_all_channels()
/third_party/gstreamer/gstplugins_bad/ext/sndfile/
Dgstsfelement.c40 sf_command (NULL, SFC_GET_FORMAT_MAJOR_COUNT, &count, sizeof (gint)); in gst_sf_create_audio_template_caps()
44 sf_command (NULL, SFC_GET_FORMAT_MAJOR, &format_info, sizeof (format_info)); in gst_sf_create_audio_template_caps()
/third_party/libsnd/Win32/
Dtestprog.c12 sf_command (NULL, SFC_GET_LIB_VERSION, strbuffer, sizeof (strbuffer)) ; in main()
/third_party/libsnd/regtest/
Dsndfile-regtest.c106 sf_command (NULL, SFC_GET_LIB_VERSION, version, sizeof (version)) ; in print_libsndfile_version()

12