Home
last modified time | relevance | path

Searched refs:SF_TRUE (Results 1 - 25 of 70) sorted by relevance

123

/third_party/libsnd/tests/
H A Dmisc_test.c247 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 Dcommand_test.c322 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 Dlong_read_write_test.c105 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 Dstring_test.c231 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 Dheaderless_test.c75 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 Ddither_test.c149 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 Dlargefile_test.c63 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 Dchunk_test.c120 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 Ddwvw_test.c73 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 Dpeak_chunk_test.c144 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 Draw_test.c75 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 Dogg_opus_test.c354 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 Ddouble64.c122 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 Dfloat32.c119 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 Dsndfile.c470 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 Dcart.c84 return SF_TRUE ; in cart_var_set()
98 return SF_TRUE ; in cart_var_get()
H A Ddwvw.c147 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 Dwav.c618 { 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 Dbroadcast.c92 return SF_TRUE ; in broadcast_var_set()
107 return SF_TRUE ; in broadcast_var_get()
H A Dw64.c497 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 Dtxw.c232 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 Dogg.c498 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 Dvox_adpcm.c215 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 Dg72x.c295 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 Dsndfile-convert.c280 { 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()

Completed in 19 milliseconds

123