/third_party/libsnd/tests/ |
H A D | misc_test.c | 247 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in zero_data_test() 253 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in zero_data_test() 406 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in wavex_amb_test() 413 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in wavex_amb_test() 444 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in rf64_downgrade_test() 447 exit_if_true (sf_command (file, SFC_RF64_AUTO_DOWNGRADE, NULL, SF_TRUE) != SF_TRUE, "\n\nLine %d: sf_command failed.\n", __LINE__) ; in rf64_downgrade_test() 451 exit_if_true (sf_command (file, SFC_RF64_AUTO_DOWNGRADE, NULL, SF_FALSE) != SF_TRUE, "\n\nLine %d: sf_command failed.\n", __LINE__) ; in rf64_downgrade_test() 452 exit_if_true (sf_command (file, SFC_RF64_AUTO_DOWNGRADE, NULL, SF_TRUE) != SF_TRUE, "\ in rf64_downgrade_test() [all...] |
H A D | command_test.c | 322 sf_command (file, SFC_SET_NORM_FLOAT, NULL, SF_TRUE) ; in float_norm_test() 438 sf_command (file, SFC_SET_NORM_DOUBLE, NULL, SF_TRUE) ; in double_norm_test() 581 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in calc_peak_test() 587 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in calc_peak_test() 628 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in calc_peak_test() 634 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in calc_peak_test() 682 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ; in truncate_test() 713 if (sf_command (sndfile, SFC_GET_INSTRUMENT, &inst, sizeof (inst)) == SF_TRUE) in instrumet_rw_test() 716 if (sf_command (sndfile, SFC_SET_INSTRUMENT, &inst, sizeof (inst)) == SF_TRUE) in instrumet_rw_test() 757 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE_ in instrument_test() [all...] |
H A D | long_read_write_test.c | 105 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in short_lrw_test() 113 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in short_lrw_test() 151 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in int_lrw_test() 159 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in int_lrw_test() 197 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in float_lrw_test() 205 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in float_lrw_test() 243 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in double_lrw_test() 251 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in double_lrw_test()
|
H A D | string_test.c | 231 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_start_end_test() 253 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in string_start_end_test() 396 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_start_test() 419 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in string_start_test() 565 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_multi_set_test() 594 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in string_multi_set_test() 759 file = test_open_file_or_die (filename, SFM_WRITE, &info, SF_TRUE, __LINE__) ; in software_string_test() 768 file = test_open_file_or_die (filename, SFM_READ, &info, SF_TRUE, __LINE__) ; in software_string_test() 804 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_rdwr_grow_test() 815 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE_ in string_rdwr_grow_test() [all...] |
H A D | headerless_test.c | 75 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in headerless_test() 91 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in headerless_test() 136 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in old_test() 152 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in old_test()
|
H A D | dither_test.c | 149 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in dither_test() 152 if (sf_command (file, SFC_SET_DITHER_ON_WRITE, NULL, SF_TRUE) == 0) in dither_test() 173 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in dither_test()
|
H A D | largefile_test.c | 63 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in largefile_test() 70 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in largefile_test()
|
H A D | chunk_test.c | 120 allow_fd = SF_TRUE ; in chunk_test_helper() 214 allow_fd = SF_TRUE ; in multichunk_test_helper() 349 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in wav_subchunk_test() 372 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in wav_subchunk_test() 409 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in large_free_test() 432 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in large_free_test()
|
H A D | dwvw_test.c | 73 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in dwvw_test() 87 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in dwvw_test()
|
H A D | peak_chunk_test.c | 144 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_TRUE) ; in test_float_peak() 146 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_TRUE) ; in test_float_peak() 175 { printf ("\n\nLine %d: Command should have returned SF_TRUE.\n", __LINE__) ; in test_float_peak() 185 { printf ("\n\nLine %d: Command should have returned SF_TRUE.\n", __LINE__) ; in test_float_peak() 212 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_TRUE) ; in test_float_peak() 336 sf_command (file, SFC_SET_ADD_PEAK_CHUNK, NULL, SF_TRUE) ; in read_write_peak_test()
|
H A D | raw_test.c | 75 sndfile = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ; in raw_offset_test() 86 sndfile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in raw_offset_test()
|
H A D | ogg_opus_test.c | 354 if (sf_command (file, SFC_SET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplerate)) != SF_TRUE) in ogg_opus_original_samplerate_test() 370 if (sf_command (file, SFC_GET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplerate)) != SF_TRUE in ogg_opus_original_samplerate_test() 376 if (sf_command (file, SFC_SET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplerate)) == SF_TRUE) in ogg_opus_original_samplerate_test() 386 if (sf_command (file, SFC_SET_ORIGINAL_SAMPLERATE, &original_samplerate, sizeof (original_samplerate)) != SF_TRUE) in ogg_opus_original_samplerate_test()
|
/third_party/libsnd/src/ |
H A D | double64.c | 122 psf->data_endswap = SF_TRUE ; in double64_init() 130 psf->data_endswap = SF_TRUE ; in double64_init() 155 psf->data_endswap = SF_TRUE ; in double64_init() 163 psf->data_endswap = SF_TRUE ; in double64_init() 193 psf->data_endswap = SF_TRUE ; in double64_init() 201 psf->data_endswap = SF_TRUE ; in double64_init() 226 psf->data_endswap = SF_TRUE ; in double64_init() 234 psf->data_endswap = SF_TRUE ; in double64_init() 577 if (psf->data_endswap == SF_TRUE) in host_read_d2s() 607 if (psf->data_endswap == SF_TRUE) in host_read_d2i() [all...] |
H A D | float32.c | 119 psf->data_endswap = SF_TRUE ; in float32_init() 127 psf->data_endswap = SF_TRUE ; in float32_init() 136 psf->data_endswap = SF_TRUE ; in float32_init() 160 psf->data_endswap = SF_TRUE ; in float32_init() 190 psf->data_endswap = SF_TRUE ; in float32_init() 198 psf->data_endswap = SF_TRUE ; in float32_init() 207 psf->data_endswap = SF_TRUE ; in float32_init() 231 psf->data_endswap = SF_TRUE ; in float32_init() 529 if (psf->data_endswap == SF_TRUE) in host_read_f2s() 559 if (psf->data_endswap == SF_TRUE) in host_read_f2i() [all...] |
H A D | sndfile.c | 470 psf->file.do_not_close_descriptor = SF_TRUE ; in sf_open_fd() 511 psf->virtual_io = SF_TRUE ; in sf_open_virtual() 1067 psf->norm_float = (datasize) ? SF_TRUE : SF_FALSE ; in sf_command() 1078 psf->norm_double = (datasize) ? SF_TRUE : SF_FALSE ; in sf_command() 1090 psf->float_int_mult = (datasize != 0) ? SF_TRUE : SF_FALSE ; in sf_command() 1098 psf->scale_int_float = (datasize != 0) ? SF_TRUE : SF_FALSE ; in sf_command() 1144 psf->write_header (psf, SF_TRUE) ; in sf_command() 1165 *((double*) data) = psf_calc_signal_max (psf, SF_TRUE) ; in sf_command() 1176 return psf_calc_max_all_channels (psf, (double*) data, SF_TRUE) ; in sf_command() 1194 psf->write_header (psf, SF_TRUE) ; in sf_command() [all...] |
H A D | cart.c | 84 return SF_TRUE ; in cart_var_set() 98 return SF_TRUE ; in cart_var_get()
|
H A D | dwvw.c | 147 psf->write_header (psf, SF_TRUE) ; in dwvw_close() 253 normfact = (psf->norm_float == SF_TRUE) ? 1.0 / ((float) 0x80000000) : 1.0 ; in dwvw_read_f() 285 normfact = (psf->norm_double == SF_TRUE) ? 1.0 / ((double) 0x80000000) : 1.0 ; in dwvw_read_d() 372 { get_dwm = SF_TRUE ; in dwvw_decode_load_bits() 624 normfact = (psf->norm_float == SF_TRUE) ? (1.0 * 0x7FFFFFFF) : 1.0 ; in dwvw_write_f() 656 normfact = (psf->norm_double == SF_TRUE) ? (1.0 * 0x7FFFFFFF) : 1.0 ; in dwvw_write_d()
|
H A D | wav.c | 618 { done = SF_TRUE ; in wav_read_header() 627 done = SF_TRUE ; in wav_read_header() 646 done = SF_TRUE ; in wav_read_header() 816 add_fact_chunk = SF_TRUE ; in wav_write_fmt_chunk() 829 add_fact_chunk = SF_TRUE ; in wav_write_fmt_chunk() 842 add_fact_chunk = SF_TRUE ; in wav_write_fmt_chunk() 864 add_fact_chunk = SF_TRUE ; in wav_write_fmt_chunk() 890 add_fact_chunk = SF_TRUE ; in wav_write_fmt_chunk() 905 add_fact_chunk = SF_TRUE ; in wav_write_fmt_chunk() 926 add_fact_chunk = SF_TRUE ; in wav_write_fmt_chunk() [all...] |
H A D | broadcast.c | 92 return SF_TRUE ; in broadcast_var_set() 107 return SF_TRUE ; in broadcast_var_get()
|
H A D | w64.c | 497 add_fact_chunk = SF_TRUE ; in w64_write_header() 512 add_fact_chunk = SF_TRUE ; in w64_write_header() 527 add_fact_chunk = SF_TRUE ; in w64_write_header() 553 add_fact_chunk = SF_TRUE ; in w64_write_header() 581 add_fact_chunk = SF_TRUE ; in w64_write_header() 605 add_fact_chunk = SF_TRUE ; in w64_write_header() 636 w64_write_header (psf, SF_TRUE) ; in w64_close()
|
H A D | txw.c | 232 psf->sf.seekable = SF_TRUE ; in txw_read_header() 306 if (psf->norm_float == SF_TRUE) in txw_read_f() 342 if (psf->norm_double == SF_TRUE) in txw_read_d()
|
H A D | ogg.c | 498 if (force_bisect == SF_TRUE) in ogg_stream_seek_page_search() 515 { if (buffering == SF_TRUE) in ogg_stream_seek_page_search() 594 { if (buffering == SF_TRUE) in ogg_stream_seek_page_search() 640 buffering = SF_TRUE ; in ogg_stream_seek_page_search() 669 force_bisect = end - begin > d0 * 2 ? SF_TRUE : SF_FALSE ; in ogg_stream_seek_page_search()
|
H A D | vox_adpcm.c | 215 normfact = (psf->norm_float == SF_TRUE) ? 1.0 / ((float) 0x8000) : 1.0 ; in vox_read_f() 246 normfact = (psf->norm_double == SF_TRUE) ? 1.0 / ((double) 0x8000) : 1.0 ; in vox_read_d() 352 normfact = (psf->norm_float == SF_TRUE) ? (1.0 * 0x7FFF) : 1.0 ; in vox_write_f() 383 normfact = (psf->norm_double == SF_TRUE) ? (1.0 * 0x7FFF) : 1.0 ; in vox_write_d()
|
H A D | g72x.c | 295 normfact = (psf->norm_float == SF_TRUE) ? 1.0 / ((float) 0x8000) : 1.0 ; in g72x_read_f() 327 normfact = (psf->norm_double == SF_TRUE) ? 1.0 / ((double) 0x8000) : 1.0 ; in g72x_read_d() 534 normfact = (psf->norm_float == SF_TRUE) ? (1.0 * 0x8000) : 1.0 ; in g72x_write_f() 566 normfact = (psf->norm_double == SF_TRUE) ? (1.0 * 0x8000) : 1.0 ; in g72x_write_d()
|
/third_party/libsnd/programs/ |
H A D | sndfile-convert.c | 280 { normalize = SF_TRUE ; in main() 396 if (sf_command (infile, SFC_GET_CHANNEL_MAP_INFO, chanmap, size) == SF_TRUE) in copy_metadata() 400 if (sf_command (infile, SFC_GET_CUE, &cues, sizeof (cues)) == SF_TRUE) in copy_metadata() 403 if (sf_command (infile, SFC_GET_INSTRUMENT, &inst, sizeof (inst)) == SF_TRUE) in copy_metadata() 406 if (sf_command (infile, SFC_GET_BROADCAST_INFO, &binfo, sizeof (binfo)) == SF_TRUE) in copy_metadata()
|