Home
last modified time | relevance | path

Searched refs:bytespersec (Results 1 – 6 of 6) sorted by relevance

/third_party/libsnd/src/
Dwavlike.c127 int bytesread, k, bytespersec = 0 ; in wavlike_read_fmt_chunk() local
143 &(wav_fmt->min.samplerate), &(wav_fmt->min.bytespersec), in wavlike_read_fmt_chunk()
202 bytespersec = wav_fmt->min.samplerate * wav_fmt->min.blockalign ; in wavlike_read_fmt_chunk()
203 if (wav_fmt->min.bytespersec != (unsigned) bytespersec) in wavlike_read_fmt_chunk()
204 …_log_printf (psf, " Bytes/sec : %d (should be %d)\n", wav_fmt->min.bytespersec, bytespersec) ; in wavlike_read_fmt_chunk()
206 psf_log_printf (psf, " Bytes/sec : %d\n", wav_fmt->min.bytespersec) ; in wavlike_read_fmt_chunk()
213 if (wav_fmt->min.bytespersec != wav_fmt->min.samplerate * wav_fmt->min.blockalign) in wavlike_read_fmt_chunk()
214 …psf_log_printf (psf, " Bytes/sec : %d (should be %d)\n", wav_fmt->min.bytespersec, wav_fmt->m… in wavlike_read_fmt_chunk()
216 psf_log_printf (psf, " Bytes/sec : %d\n", wav_fmt->min.bytespersec) ; in wavlike_read_fmt_chunk()
240bytespersec = (wav_fmt->ima.samplerate * wav_fmt->ima.blockalign) / wav_fmt->ima.samplesperblock ; in wavlike_read_fmt_chunk()
[all …]
Dwavlike.h200 unsigned int bytespersec ; member
209 unsigned int bytespersec ; member
220 unsigned int bytespersec ; member
236 unsigned int bytespersec ; member
247 unsigned int bytespersec ; member
259 unsigned int bytespersec ; member
270 unsigned int bytespersec ; member
292 unsigned int bytespersec ; member
Dw64.c532 { int blockalign, framesperblock, bytespersec ; in w64_write_header() local
536 bytespersec = (psf->sf.samplerate * blockalign) / framesperblock ; in w64_write_header()
547 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in w64_write_header()
557 { int blockalign, framesperblock, bytespersec, extrabytes ; in w64_write_header() local
561 bytespersec = (psf->sf.samplerate * blockalign) / framesperblock ; in w64_write_header()
573 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in w64_write_header()
586 { int bytespersec ; in w64_write_header() local
588 bytespersec = (psf->sf.samplerate * WAVLIKE_GSM610_BLOCKSIZE) / WAVLIKE_GSM610_SAMPLES ; in w64_write_header()
599 psf_binheader_writef (psf, "e44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in w64_write_header()
Dwav.c847 { int blockalign, framesperblock, bytespersec ; in wav_write_fmt_chunk() local
851 bytespersec = (psf->sf.samplerate * blockalign) / framesperblock ; in wav_write_fmt_chunk()
858 BHW2 (psf->sf.channels), BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in wav_write_fmt_chunk()
868 { int blockalign, framesperblock, bytespersec, extrabytes ; in wav_write_fmt_chunk() local
872 bytespersec = (psf->sf.samplerate * blockalign) / framesperblock ; in wav_write_fmt_chunk()
882 psf_binheader_writef (psf, "44", BHW4 (psf->sf.samplerate), BHW4 (bytespersec)) ; in wav_write_fmt_chunk()
911 { int bytespersec, blockalign, bitwidth ; in wav_write_fmt_chunk() local
915 bytespersec = psf->sf.samplerate * blockalign / 160 ; in wav_write_fmt_chunk()
924 psf_binheader_writef (psf, "422", BHW4 (bytespersec), BHW2 (blockalign), BHW2 (bitwidth)) ; in wav_write_fmt_chunk()
933 { int blockalign, framesperblock, bytespersec ; in wav_write_fmt_chunk() local
[all …]
/third_party/ffmpeg/libavformat/
Driffenc.c58 int bps, blkalign, bytespersec, frame_size; in ff_put_wav_header() local
135 bytespersec = par->sample_rate * blkalign; in ff_put_wav_header()
137 bytespersec = 800; in ff_put_wav_header()
139 bytespersec = par->bit_rate / 8; in ff_put_wav_header()
141 avio_wl32(pb, bytespersec); /* bytes per second */ in ff_put_wav_header()
/third_party/ffmpeg/tools/
Dsofa2wavs.c60 int bytespersec = blkalign * sample_rate; in main() local
78 fwrite(&bytespersec, 4, 1, file); in main()