/third_party/libsnd/src/ |
D | mat5.c | 221 …_binheader_writef (psf, "444444", BHW4 (MAT5_TYPE_ARRAY), BHW4 (64), BHW4 (MAT5_TYPE_UINT32), BHW4… in mat5_write_header() 222 psf_binheader_writef (psf, "4444", BHW4 (MAT5_TYPE_INT32), BHW4 (8), BHW4 (1), BHW4 (1)) ; in mat5_write_header() 223 …psf_binheader_writef (psf, "44b", BHW4 (MAT5_TYPE_SCHAR), BHW4 (strlen (sr_name)), BHWv (sr_name),… in mat5_write_header() 226 psf_binheader_writef (psf, "44", BHW4 (MAT5_TYPE_COMP_UINT), BHW4 (psf->sf.samplerate)) ; in mat5_write_header() 230 psf_binheader_writef (psf, "422", BHW4 (MAT5_TYPE_COMP_USHORT), BHW2 (samplerate), BHW2 (0)) ; in mat5_write_header() 235 …ader_writef (psf, "t484444", BHW4 (MAT5_TYPE_ARRAY), BHW8 (datasize + 64), BHW4 (MAT5_TYPE_UINT32)… in mat5_write_header() 236 …psf_binheader_writef (psf, "t4448", BHW4 (MAT5_TYPE_INT32), BHW4 (8), BHW4 (psf->sf.channels), BHW… in mat5_write_header() 237 …psf_binheader_writef (psf, "44b", BHW4 (MAT5_TYPE_SCHAR), BHW4 (strlen (wd_name)), BHWv (wd_name),… in mat5_write_header() 243 psf_binheader_writef (psf, "t48", BHW4 (encoding), BHW8 (datasize)) ; in mat5_write_header()
|
D | wav.c | 770 …psf_binheader_writef (psf, "4224", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_PCM), BHW2 (psf->sf.channels… in wav_write_fmt_chunk() 772 … psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk() 782 …psf_binheader_writef (psf, "4224", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_IEEE_FLOAT), BHW2 (psf->sf.c… in wav_write_fmt_chunk() 784 … psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk() 795 …psf_binheader_writef (psf, "4224", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_MULAW), BHW2 (psf->sf.channe… in wav_write_fmt_chunk() 797 … psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk() 808 …psf_binheader_writef (psf, "4224", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_ALAW), BHW2 (psf->sf.channel… in wav_write_fmt_chunk() 810 … psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk() 829 psf_binheader_writef (psf, "42244", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_IMA_ADPCM), in wav_write_fmt_chunk() 830 BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in wav_write_fmt_chunk() [all …]
|
D | rf64.c | 546 …psf_binheader_writef (psf, "4224", BHW4 (fmt_size), BHW2 (WAVE_FORMAT_EXTENSIBLE), BHW2 (psf->sf.c… in rf64_write_fmt_chunk() 548 psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in rf64_write_fmt_chunk() 562 psf_binheader_writef (psf, "4", BHW4 (0)) ; in rf64_write_fmt_chunk() 564 psf_binheader_writef (psf, "4", BHW4 (wpriv->wavex_channelmask)) ; in rf64_write_fmt_chunk() 573 psf_binheader_writef (psf, "4", BHW4 (0x4)) ; in rf64_write_fmt_chunk() 577 psf_binheader_writef (psf, "4", BHW4 (0x1 | 0x2)) ; in rf64_write_fmt_chunk() 581 psf_binheader_writef (psf, "4", BHW4 (0x1 | 0x2 | 0x10 | 0x20)) ; in rf64_write_fmt_chunk() 585 psf_binheader_writef (psf, "4", BHW4 (0x1 | 0x2 | 0x4 | 0x8 | 0x10 | 0x20)) ; in rf64_write_fmt_chunk() 589 psf_binheader_writef (psf, "4", BHW4 (0x1 | 0x2 | 0x4 | 0x8 | 0x10 | 0x20 | 0x40 | 0x80)) ; in rf64_write_fmt_chunk() 593 psf_binheader_writef (psf, "4", BHW4 (0x0)) ; in rf64_write_fmt_chunk() [all …]
|
D | mat4.c | 176 { psf_binheader_writef (psf, "Em444", BHWm (MAT4_BE_DOUBLE), BHW4 (1), BHW4 (1), BHW4 (0)) ; in mat4_write_header() 177 psf_binheader_writef (psf, "E4bd", BHW4 (11), BHWv ("samplerate"), BHWz (11), BHWd (samplerate)) ; in mat4_write_header() 178 …binheader_writef (psf, "tEm484", BHWm (encoding), BHW4 (psf->sf.channels), BHW8 (psf->sf.frames), … in mat4_write_header() 179 psf_binheader_writef (psf, "E4b", BHW4 (9), BHWv ("wavedata"), BHWz (9)) ; in mat4_write_header() 182 { psf_binheader_writef (psf, "em444", BHWm (MAT4_LE_DOUBLE), BHW4 (1), BHW4 (1), BHW4 (0)) ; in mat4_write_header() 183 psf_binheader_writef (psf, "e4bd", BHW4 (11), BHWv ("samplerate"), BHWz (11), BHWd (samplerate)) ; in mat4_write_header() 184 …binheader_writef (psf, "tem484", BHWm (encoding), BHW4 (psf->sf.channels), BHW8 (psf->sf.frames), … in mat4_write_header() 185 psf_binheader_writef (psf, "e4b", BHW4 (9), BHWv ("wavedata"), BHWz (9)) ; in mat4_write_header()
|
D | au.c | 242 { psf_binheader_writef (psf, "Em4", BHWm (DOTSND_MARKER), BHW4 (AU_DATA_OFFSET)) ; in au_write_header() 243 …psf_binheader_writef (psf, "E4444", BHW4 (datalength), BHW4 (encoding), BHW4 (psf->sf.samplerate),… in au_write_header() 246 { psf_binheader_writef (psf, "em4", BHWm (DNSDOT_MARKER), BHW4 (AU_DATA_OFFSET)) ; in au_write_header() 247 …psf_binheader_writef (psf, "e4444", BHW4 (datalength), BHW4 (encoding), BHW4 (psf->sf.samplerate),… in au_write_header()
|
D | w64.c | 475 …e8224", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_PCM), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate… in w64_write_header() 477 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header() 489 … BHW8 (fmt_size), BHW2 (WAVE_FORMAT_IEEE_FLOAT), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate… in w64_write_header() 491 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header() 504 …224", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_MULAW), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate… in w64_write_header() 506 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header() 519 …8224", BHW8 (fmt_size), BHW2 (WAVE_FORMAT_ALAW), BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate… in w64_write_header() 521 … psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header() 545 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in w64_write_header() 571 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in w64_write_header() [all …]
|
D | sd2.c | 241 …psf_binheader_writef (psf, "E444", BHW4 (rsrc.data_offset), BHW4 (rsrc.map_offset), BHW4 (rsrc.dat… in sd2_write_rsrc_fork() 247 …psf_binheader_writef (psf, "E4444", BHW4 (rsrc.map_offset), BHW4 (rsrc.data_offset), BHW4 (rsrc.ma… in sd2_write_rsrc_fork() 251 …{ psf_binheader_writef (psf, "Eo1422", BHWo (rsrc.map_offset + 16), BHW1 (1), BHW4 (0x12345678), B… in sd2_write_rsrc_fork() 285 …psf_binheader_writef (psf, "Eo4", BHWo (rsrc.item_offset + k * 12 + 4), BHW4 (data_offset - rsrc.d… in sd2_write_rsrc_fork() 286 psf_binheader_writef (psf, "Eo4", BHWo (data_offset), BHW4 (str_rsrc [k].value_len)) ; in sd2_write_rsrc_fork() 294 psf_binheader_writef (psf, "Eo4o4", BHWo (12), BHW4 (rsrc.map_length), in sd2_write_rsrc_fork() 295 BHWo (rsrc.map_offset + 12), BHW4 (rsrc.map_length)) ; in sd2_write_rsrc_fork()
|
D | svx.c | 371 psf_binheader_writef (psf, "Em4", BHWm (VHDR_MARKER), BHW4 (sizeof (VHDR_CHUNK))) ; in svx_write_header() 373 psf_binheader_writef (psf, "E444", BHW4 (psf->sf.frames), BHW4 (0), BHW4 (0)) ; in svx_write_header() 377 psf_binheader_writef (psf, "E4", BHW4 ((psf->bytewidth == 1) ? 0xFF : 0xFFFF)) ; in svx_write_header() 380 psf_binheader_writef (psf, "Em44", BHWm (CHAN_MARKER), BHW4 (4), BHW4 (6)) ; in svx_write_header()
|
D | paf.c | 306 …psf_binheader_writef (psf, "Em444", BHWm (PAF_MARKER), BHW4 (0), BHW4 (0), BHW4 (psf->sf.samplerat… in paf_write_header() 308 psf_binheader_writef (psf, "E444", BHW4 (paf_format), BHW4 (psf->sf.channels), BHW4 (0)) ; in paf_write_header() 312 …psf_binheader_writef (psf, "em444", BHWm (FAP_MARKER), BHW4 (0), BHW4 (1), BHW4 (psf->sf.samplerat… in paf_write_header() 314 psf_binheader_writef (psf, "e444", BHW4 (paf_format), BHW4 (psf->sf.channels), BHW4 (0)) ; in paf_write_header()
|
D | aiff.c | 1182 …binheader_writef (psf, "Em42t4", BHWm (COMM_MARKER), BHW4 (comm_size), BHW2 (psf->sf.channels), BH… in aiff_rewrite_header() 1188 …psf_binheader_writef (psf, "Em4", BHWm (PEAK_MARKER), BHW4 (AIFF_PEAK_CHUNK_SIZE (psf->sf.channels… in aiff_rewrite_header() 1189 psf_binheader_writef (psf, "E44", BHW4 (1), BHW4 (time (NULL))) ; in aiff_rewrite_header() 1417 …psf_binheader_writef (psf, "Emm44", BHWm (comm_type), BHWm (FVER_MARKER), BHW4 (4), BHW4 (0xA28051… in aiff_write_header() 1426 …inheader_writef (psf, "Em42t42", BHWm (COMM_MARKER), BHW4 (comm_size), BHW2 (psf->sf.channels), BH… in aiff_write_header() 1434 …header_writef (psf, "Em4444", BHWm (CHAN_MARKER), BHW4 (12), BHW4 (paiff->chanmap_tag), BHW4 (0), … in aiff_write_header() 1455 …BHWm (MARK_MARKER), BHW4 (2 + psf->cues->cue_count * (2 + 4) + totalStringLength), BHW2 (psf->cues… in aiff_write_header() 1458 …psf_binheader_writef (psf, "E24p", BHW2 (psf->cues->cue_points [idx].indx), BHW4 (psf->cues->cue_p… in aiff_write_header() 1465 …{ psf_binheader_writef (psf, "Em4", BHWm (PEAK_MARKER), BHW4 (AIFF_PEAK_CHUNK_SIZE (psf->sf.channe… in aiff_write_header() 1466 psf_binheader_writef (psf, "E44", BHW4 (1), BHW4 (time (NULL))) ; in aiff_write_header() [all …]
|
D | voc.c | 490 …HW1 (VOC_EXTENDED_II), BHW3 (length), BHW4 (psf->sf.samplerate), BHW1 (16), BHW1 (psf->sf.channels… in voc_write_header() 497 …HW1 (VOC_EXTENDED_II), BHW3 (length), BHW4 (psf->sf.samplerate), BHW1 (16), BHW1 (psf->sf.channels… in voc_write_header() 503 …HW1 (VOC_EXTENDED_II), BHW3 (length), BHW4 (psf->sf.samplerate), BHW1 (8), BHW1 (psf->sf.channels)… in voc_write_header() 509 …HW1 (VOC_EXTENDED_II), BHW3 (length), BHW4 (psf->sf.samplerate), BHW1 (8), BHW1 (psf->sf.channels)… in voc_write_header()
|
D | htk.c | 126 psf_binheader_writef (psf, "E444", BHW4 (sample_count), BHW4 (sample_period), BHW4 (0x20000)) ; in htk_write_header()
|
D | avr.c | 220 …psf_binheader_writef (psf, "E4444", BHW4 (psf->sf.samplerate), BHW4 (psf->sf.frames), BHW4 (0), BH… in avr_write_header()
|
D | ircam.c | 270 psf_binheader_writef (psf, "E44", BHW4 (psf->sf.channels), BHW4 (encoding)) ; in ircam_write_header() 275 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.channels), BHW4 (encoding)) ; in ircam_write_header()
|
D | caf.c | 724 …BHWm (desc.fmt_id), BHW4 (desc.fmt_flags), BHW4 (desc.pkt_bytes), BHW4 (desc.frames_per_packet), B… in caf_write_header() 730 …peak_MARKER), BHW8 ((sf_count_t) CAF_PEAK_CHUNK_SIZE (psf->sf.channels)), BHW4 (psf->peak_info->ed… in caf_write_header() 736 …, "Em8444", BHWm (chan_MARKER), BHW8 ((sf_count_t) 12), BHW4 (pcaf->chanmap_tag), BHW4 (0), BHW4 (… in caf_write_header() 740 …psf_binheader_writef (psf, "m44b", BHWm ((int) psf->wchunks.chunks [uk].mark32), BHW4 (0), BHW4 (p… in caf_write_header() 750 psf_binheader_writef (psf, "Em84", BHWm (data_MARKER), BHW8 (psf->datalength + 4), BHW4 (0)) ; in caf_write_header() 985 …psf_binheader_writef (psf, "Em84b", BHWm (info_MARKER), BHW8 (buf.index + 4), BHW4 (string_count),… in caf_write_strings()
|
D | ogg_vcomment.c | 196 psf_binheader_writef (psf, "e4b", BHW4 (tag_name_len), BHWv (vendor), BHWz (tag_name_len)) ; in vorbiscomment_write_tags() 219 BHW4 (tag_name_len + 1 + tag_body_len), in vorbiscomment_write_tags() 244 psf_binheader_writef (psf, "eo4", BHWo (tags_start), BHW4 (ntags)) ; in vorbiscomment_write_tags()
|
D | wavlike.c | 470 psf_binheader_writef (psf, "422b", BHW4 (subformat->esf_field1), in wavlike_write_guid() 792 …psf_binheader_writef (psf, "m4", BHWm (bext_MARKER), BHW4 (WAV_BEXT_MIN_CHUNK_SIZE + b->coding_his… in wavlike_write_bext_chunk() 804 …psf_binheader_writef (psf, "442", BHW4 (b->time_reference_low), BHW4 (b->time_reference_high), BHW… in wavlike_write_bext_chunk() 894 …psf_binheader_writef (psf, "m4", BHWm (cart_MARKER), BHW4 (WAV_CART_MIN_CHUNK_SIZE + c->tag_text_s… in wavlike_write_cart_chunk() 914 psf_binheader_writef (psf, "e4", BHW4 (c->level_reference)) ; in wavlike_write_cart_chunk() 917 …psf_binheader_writef (psf, "b4", BHWv (c->post_timers [k].usage), BHWz (4), BHW4 (c->post_timers [… in wavlike_write_cart_chunk() 1128 psf_binheader_writef (psf, "m4m", BHWm (LIST_MARKER), BHW4 (0xBADBAD), BHWm (INFO_MARKER)) ; in wavlike_write_strings() 1180 psf_binheader_writef (psf, "4", BHW4 (saved_head_index - prev_head_index - 4)) ; in wavlike_write_strings() 1239 …psf_binheader_writef (psf, "m4", BHWm (PEAK_MARKER), BHW4 (WAVLIKE_PEAK_CHUNK_SIZE (psf->sf.channe… in wavlike_write_peak_chunk() 1240 psf_binheader_writef (psf, "44", BHW4 (1), BHW4 (time (NULL))) ; in wavlike_write_peak_chunk() [all …]
|
D | wve.c | 178 …psf_binheader_writef (psf, "E2422222", BHW2 (PSION_VERSION), BHW4 (datalen), BHW2 (0), BHW2 (0), B… in wve_write_header()
|
D | mpc2k.c | 138 …psf_binheader_writef (psf, "et4888", BHW4 (0), BHW8 (psf->sf.frames), BHW8 (psf->sf.frames), BHW8 … in mpc2k_write_header()
|
D | xi.c | 308 …psf_binheader_writef (psf, "et844", BHW8 (psf->sf.frames), BHW4 (pxi->loop_begin), BHW4 (pxi->loop… in xi_write_header()
|
D | ogg_opus.c | 795 psf_binheader_writef (psf, "e4", BHW4 (oopus->header.input_samplerate)) ; in ogg_opus_write_header() 797 psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate)) ; in ogg_opus_write_header()
|
D | common.h | 143 #define BHW4(x) ((uint32_t) (x)) macro
|