/third_party/libsnd/tests/ |
D | lossy_comp_test.c | 122 lcomp_test_short ("pcm.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16, 2, 1e-50) ; in main() 123 lcomp_test_int ("pcm.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_32, 2, 1e-50) ; in main() 124 lcomp_test_short ("pcm.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV | SF_FORMAT_PCM_16, 2, 1e-50) ; in main() 125 lcomp_test_int ("pcm.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV | SF_FORMAT_PCM_32, 2, 1e-50) ; in main() 127 lcomp_test_float ("pcm.wav", SF_FORMAT_WAV | SF_FORMAT_FLOAT, 2, 1e-50) ; in main() 128 lcomp_test_double ("pcm.wav", SF_FORMAT_WAV | SF_FORMAT_DOUBLE, 2, 1e-50) ; in main() 131 read_raw_test ("pcm.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_U8, 2) ; in main() 138 { lcomp_test_short ("ima.wav", SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM, 2, 0.18) ; in main() 139 lcomp_test_int ("ima.wav", SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM, 2, 0.65) ; in main() 140 lcomp_test_float ("ima.wav", SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM, 2, 0.18) ; in main() [all …]
|
D | multi_file_test.c | 52 { SF_FORMAT_WAV | SF_FORMAT_PCM_16, 53 SF_FORMAT_WAV | SF_FORMAT_PCM_24, 54 SF_FORMAT_WAV | SF_FORMAT_ULAW, 55 SF_FORMAT_WAV | SF_FORMAT_ALAW, 57 SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM, 58 SF_FORMAT_WAV | SF_FORMAT_MS_ADPCM,
|
D | string_test.c | 74 { string_start_end_test ("strings.wav", SF_FORMAT_WAV) ; in main() 75 string_multi_set_test ("multi.wav", SF_FORMAT_WAV) ; in main() 76 string_rdwr_test ("rdwr.wav", SF_FORMAT_WAV) ; in main() 77 string_short_rdwr_test ("short_rdwr.wav", SF_FORMAT_WAV) ; in main() 78 string_rdwr_grow_test ("rdwr_grow.wav", SF_FORMAT_WAV) ; in main() 79 string_header_update ("header_update.wav", SF_FORMAT_WAV) ; in main() 86 string_start_end_test ("strings.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV) ; in main() 87 string_multi_set_test ("multi.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV) ; in main() 88 string_rdwr_test ("rdwr.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV) ; in main() 89 string_short_rdwr_test ("short_rdwr.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV) ; in main() [all …]
|
D | format_check_test.c | 58 info.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16 ; in format_error_test() 62 info.format = SF_FORMAT_WAV ; in format_error_test() 131 major_fmt_info.format == SF_FORMAT_WAV) in format_combo_test()
|
D | command_test.c | 143 { instrument_test ("instrument.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 154 cue_test ("cue.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 158 { cue_test_var ("cue.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16, cuecounts [i]) ; in main() 171 { broadcast_test ("broadcast.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 172 broadcast_rdwr_test ("broadcast.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 183 { cart_test ("cart.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 184 cart_rdwr_test ("cart.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 205 { raw_needs_endswap_test ("raw_end.wav", SF_FORMAT_WAV) ; in main() 207 raw_needs_endswap_test ("raw_end.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV) ; in main() 776 if ((filetype & SF_FORMAT_TYPEMASK) == SF_FORMAT_WAV) in instrument_test() [all …]
|
D | cpp_test.cc | 44 SndfileHandle file (filename, SFM_WRITE, SF_FORMAT_WAV | SF_FORMAT_PCM_16, 2, 44100) ; in ceeplusplus_wchar_test() 304 ceeplusplus_test ("cpp_test.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 309 ceeplusplus_handle_test ("cpp_test.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main()
|
D | peak_chunk_test.c | 70 { test_float_peak ("peak_float.wav", SF_FORMAT_WAV | SF_FORMAT_FLOAT) ; in main() 72 test_float_peak ("peak_float.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV | SF_FORMAT_FLOAT) ; in main() 74 read_write_peak_test ("rw_peak.wav", SF_FORMAT_WAV | SF_FORMAT_FLOAT) ; in main()
|
D | write_read_test.tpl | 96 { pcm_test_char ("char.wav" , SF_FORMAT_WAV | SF_FORMAT_PCM_U8, SF_FALSE) ; 97 pcm_test_short ("short.wav" , SF_FORMAT_WAV | SF_FORMAT_PCM_16, SF_FALSE) ; 98 pcm_test_24bit ("24bit.wav" , SF_FORMAT_WAV | SF_FORMAT_PCM_24, SF_FALSE) ; 99 pcm_test_int ("int.wav" , SF_FORMAT_WAV | SF_FORMAT_PCM_32, SF_FALSE) ; 101 pcm_test_char ("char.rifx" , SF_ENDIAN_BIG | SF_FORMAT_WAV | SF_FORMAT_PCM_U8, SF_FALSE) ; 102 pcm_test_short ("short.rifx" , SF_ENDIAN_BIG | SF_FORMAT_WAV | SF_FORMAT_PCM_16, SF_FALSE) ; 103 pcm_test_24bit ("24bit.rifx" , SF_ENDIAN_BIG | SF_FORMAT_WAV | SF_FORMAT_PCM_24, SF_FALSE) ; 104 pcm_test_int ("int.rifx" , SF_ENDIAN_BIG | SF_FORMAT_WAV | SF_FORMAT_PCM_32, SF_FALSE) ; 110 pcm_test_float ("float.wav" , SF_FORMAT_WAV | SF_FORMAT_FLOAT , SF_FALSE) ; 111 pcm_test_double ("double.wav" , SF_FORMAT_WAV | SF_FORMAT_DOUBLE, SF_FALSE) ; [all …]
|
D | header_test.tpl | 85 { update_header_test ("header.wav", SF_FORMAT_WAV) ; 86 update_seek_short_test ("header_short.wav", SF_FORMAT_WAV) ; 87 update_seek_int_test ("header_int.wav", SF_FORMAT_WAV) ; 88 update_seek_float_test ("header_float.wav", SF_FORMAT_WAV) ; 89 update_seek_double_test ("header_double.wav", SF_FORMAT_WAV) ; 90 header_shrink_test ("header_shrink.wav", SF_FORMAT_WAV) ; 91 extra_header_test ("extra.wav", SF_FORMAT_WAV) ;
|
D | chunk_test.c | 63 { chunk_test ("chunks_pcm16.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 64 chunk_test ("chunks_pcm16.rifx", SF_ENDIAN_BIG | SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 347 sfinfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16 ; in wav_subchunk_test()
|
D | misc_test.c | 74 { zero_data_test ("zerolen.wav", SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 75 filesystem_full_test (SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 76 permission_test ("readonly.wav", SF_FORMAT_WAV) ; in main()
|
D | largefile_test.c | 43 largefile_test (SF_FORMAT_WAV, "largefile.wav") ; in main()
|
D | floating_point_test.tpl | 88 …float_scaled_test ("ima_adpcm.wav", allow_exit, SF_FALSE, SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM, -47… 89 …float_scaled_test ("ms_adpcm.wav" , allow_exit, SF_FALSE, SF_FORMAT_WAV | SF_FORMAT_MS_ADPCM, -40.… 153 …double_scaled_test ("ima_adpcm.wav", allow_exit, SF_FALSE, SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM, -4… 154 …double_scaled_test ("ms_adpcm.wav" , allow_exit, SF_FALSE, SF_FORMAT_WAV | SF_FORMAT_MS_ADPCM, -40…
|
D | locale_test.c | 67 info.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16 ; in wchar_test()
|
D | stdout_test.c | 56 { stdout_test (SF_FORMAT_WAV, PIPE_TEST_LEN) ; in main()
|
/third_party/libsnd/examples/ |
D | generate.c | 56 encode_file (argv [1], "pcmu8.wav" , SF_FORMAT_WAV | SF_FORMAT_PCM_U8) ; in main() 57 encode_file (argv [1], "pcm16.wav" , SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 58 encode_file (argv [1], "imaadpcm.wav", SF_FORMAT_WAV | SF_FORMAT_MS_ADPCM) ; in main() 59 encode_file (argv [1], "msadpcm.wav", SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM) ; in main() 60 encode_file (argv [1], "gsm610.wav" , SF_FORMAT_WAV | SF_FORMAT_GSM610) ; in main()
|
D | generate.cs | 56 SF_FORMAT_WAV = 0x010000, /* Microsoft WAV format (little endian). */ enumerator 207 sfinfo.format = (int)(lsndf_frmts.SF_FORMAT_WAV | lsndf_frmts.SF_FORMAT_IMA_ADPCM); in Main()
|
D | sndfilehandle.cc | 76 create_file (fname, SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main()
|
D | make_sine.c | 67 sfinfo.format = (SF_FORMAT_WAV | SF_FORMAT_PCM_24) ; in main()
|
/third_party/libsnd/src/ |
D | command.c | 84 { SF_FORMAT_WAV | SF_FORMAT_PCM_16, 88 { SF_FORMAT_WAV | SF_FORMAT_FLOAT, 92 { SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM, 96 { SF_FORMAT_WAV | SF_FORMAT_MS_ADPCM, 100 { SF_FORMAT_WAV | SF_FORMAT_PCM_U8, 157 { SF_FORMAT_WAV, "WAV (Microsoft)", "wav" },
|
D | wav.c | 191 if (format != SF_FORMAT_WAV && format != SF_FORMAT_WAVEX) in wav_open() 712 psf->sf.format = SF_FORMAT_WAV | SF_FORMAT_NMS_ADPCM_16 ; in wav_read_header() 715 psf->sf.format = SF_FORMAT_WAV | SF_FORMAT_NMS_ADPCM_24 ; in wav_read_header() 718 psf->sf.format = SF_FORMAT_WAV | SF_FORMAT_NMS_ADPCM_32 ; in wav_read_header() 727 psf->sf.format = SF_FORMAT_WAV | u_bitwidth_to_subformat (psf->bytewidth * 8) ; in wav_read_header() 732 psf->sf.format = (SF_FORMAT_WAV | SF_FORMAT_ULAW) ; in wav_read_header() 737 psf->sf.format = (SF_FORMAT_WAV | SF_FORMAT_ALAW) ; in wav_read_header() 741 psf->sf.format = (SF_FORMAT_WAV | SF_FORMAT_MS_ADPCM) ; in wav_read_header() 747 psf->sf.format = (SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM) ; in wav_read_header() 753 psf->sf.format = (SF_FORMAT_WAV | SF_FORMAT_GSM610) ; in wav_read_header() [all …]
|
/third_party/libsnd/programs/ |
D | common.c | 111 if ((SF_FORMAT_TYPEMASK & format) != SF_FORMAT_WAV) in merge_broadcast_info() 249 sfinfo.format = SF_FORMAT_WAV | (SF_FORMAT_SUBMASK & sfinfo.format) ; in sfe_apply_metadata_changes() 313 { "wav", 0, SF_FORMAT_WAV }, 378 return (SF_FORMAT_WAV | SF_FORMAT_PCM_24) ; in sfe_file_type_of_ext() 433 { case SF_FORMAT_WAV : return "WAV" ; in sfe_container_name()
|
D | sndfile-salvage.c | 131 { case SF_FORMAT_WAV : in salvage_file() 239 { case SF_FORMAT_WAV : in find_data_offset()
|
/third_party/libsnd/Octave/ |
D | sndfile.cc | 255 case 0x5c8 : /* 'wav' */ return SF_FORMAT_WAV ; in major_format_of_hash() 321 case SF_FORMAT_WAV : return "wav" ; in string_of_major_format()
|
/third_party/libsnd/docs/ |
D | linux_games_programming.txt | 169 sfinfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM; 174 sfinfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16; 205 > sfinfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM; 325 > > sfinfo.format = SF_FORMAT_WAV | SF_FORMAT_PCM;
|