Home
last modified time | relevance | path

Searched refs:SF_TRUE (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/libsnd/tests/
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: … 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()
459 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in rf64_downgrade_test()
502 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in rf64_long_file_downgrade_test()
[all …]
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 …]
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()
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 …]
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()
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()
Dheader_test.tpl264 outfile = test_open_file_or_die (filename, write_mode, &sfinfo, SF_TRUE, __LINE__) ;
272 infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
282 infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
299 sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) ;
307 infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
349 outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
390 outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
394 outfile = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
401 if (sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) == 0)
414 infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
[all …]
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()
Dpcm_test.tpl86 … ("le-float.raw", SF_ENDIAN_LITTLE | SF_FORMAT_RAW | SF_FORMAT_FLOAT, 0xad04f7554267aLL, SF_TRUE) ;
87 …at ("be-float.raw", SF_ENDIAN_BIG | SF_FORMAT_RAW | SF_FORMAT_FLOAT, 0xde3e248fa9186LL, SF_TRUE) ;
89 …"le-double.raw", SF_ENDIAN_LITTLE | SF_FORMAT_RAW | SF_FORMAT_DOUBLE, 0x2726f958f669cLL, SF_TRUE) ;
90 …e ("be-double.raw", SF_ENDIAN_BIG | SF_FORMAT_RAW | SF_FORMAT_DOUBLE, 0x3583f8ee51164LL, SF_TRUE) ;
164 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
172 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
226 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
234 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
286 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
296 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
[all …]
Dscale_clip_test.tpl153 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
154 sf_command (file, SFC_SET_CLIPPING, NULL, SF_TRUE) ;
162 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
289 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
295 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
296 sf_command (file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE) ;
317 sf_command (file, SFC_SET_CLIPPING, NULL, SF_TRUE) ;
365 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
367 sf_command (file, SFC_SET_SCALE_INT_FLOAT_WRITE, NULL, SF_TRUE) ;
375 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
Dfloating_point_test.tpl134 …float_scaled_test ("replace_float.raw", allow_exit, SF_TRUE, SF_ENDIAN_LITTLE | SF_FORMAT_RAW | SF…
196 …double_scaled_test ("replace_double.raw", allow_exit, SF_TRUE, SF_FORMAT_RAW | SF_FORMAT_DOUBLE, -…
202 …st ("[+ (get "float_name") +]_[+ (get "int_name") +]_[+ (get "end_name") +]_replace.au", SF_TRUE) ;
230 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
239 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
284 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
293 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
343 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
348 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
361 sf_command (file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE) ;
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()
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()
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()
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()
Dpipe_test.tpl136 outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
199 if ((outfile = sf_open_fd (pipefd [1], SFM_WRITE, psfinfo_write, SF_TRUE)) == NULL)
213 if ((infile_piped = sf_open_fd (pipefd [0], SFM_READ, psfinfo_read, SF_TRUE)) == NULL)
311 in_list = SF_TRUE ;
315 in_list = SF_TRUE ;
336 outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
/third_party/libsnd/src/
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 …]
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 …]
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 …]
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()
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 …]
Dcart.c84 return SF_TRUE ; in cart_var_set()
98 return SF_TRUE ; in cart_var_get()
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()
Dbroadcast.c92 return SF_TRUE ; in broadcast_var_set()
107 return SF_TRUE ; in broadcast_var_get()
/third_party/libsnd/docs/
Dcommand.md340 SF_TRUE if the file header contained the peak value. SF_FALSE
370 SF_TRUE if the file header contains per channel peak values for the file,
399 : SF_TRUE or SF_FALSE
401 For read operations setting normalisation to SF_TRUE means that the data from
404 For write operations, setting normalisation to SF_TRUE means than all data
414 sf_command (sndfile, SFC_SET_NORM_FLOAT, NULL, SF_TRUE) ;
449 : SF_TRUE or SF_FALSE
451 For read operations setting normalisation to SF_TRUE means that the data from
454 For write operations, setting normalisation to SF_TRUE means than all data
464 sf_command (sndfile, SFC_SET_NORM_DOUBLE, NULL, SF_TRUE) ;
[all …]
/third_party/libsnd/programs/
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()

1234