/third_party/libsnd/tests/ |
D | peak_chunk_test.c | 144 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 …]
|
D | command_test.c | 105 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 …]
|
D | external_libs_test.c | 62 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()
|
D | format_check_test.c | 88 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()
|
D | raw_test.c | 78 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()
|
D | misc_test.c | 407 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()
|
D | ogg_opus_test.c | 354 …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()
|
D | header_test.tpl | 276 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…
|
D | scale_clip_test.tpl | 154 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) ;
|
D | dither_test.c | 152 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()
|
D | cue_test.c | 28 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()
|
D | compression_size_test.c | 144 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()
|
D | sfversion.c | 36 sf_command (NULL, SFC_GET_LIB_VERSION, strbuffer, sizeof (strbuffer)) ; in main()
|
D | pcm_test.tpl | 288 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 …]
|
D | floating_point_test.tpl | 220 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/ |
D | list_formats.c | 49 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/ |
D | sndfile-util.c | 41 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/ |
D | sndfile-convert.c | 393 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()
|
D | sndfile-info.c | 230 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()
|
D | common.c | 57 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/ |
D | command.md | 3 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/ |
D | command.c | 298 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/ |
D | gstsfelement.c | 40 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/ |
D | testprog.c | 12 sf_command (NULL, SFC_GET_LIB_VERSION, strbuffer, sizeof (strbuffer)) ; in main()
|
/third_party/libsnd/regtest/ |
D | sndfile-regtest.c | 106 sf_command (NULL, SFC_GET_LIB_VERSION, version, sizeof (version)) ; in print_libsndfile_version()
|