Home
last modified time | relevance | path

Searched refs:samplesize (Results 1 – 2 of 2) sorted by relevance

/liblc3-3.7.0-3.6.0/tools/
Dwave.c92 int wave_read_header(FILE *fp, int *bitdepth, int *samplesize, in wave_read_header() argument
120 *samplesize = format.framesize / format.channels; in wave_read_header()
131 int wave_read_pcm(FILE *fp, int samplesize, in wave_read_pcm() argument
134 return fread(buffer, nch * samplesize, count, fp); in wave_read_pcm()
140 void wave_write_header(FILE *fp, int bitdepth, int samplesize, in wave_write_header() argument
149 long data_size = nchannels * nframes * samplesize; in wave_write_header()
162 .byterate = samplerate * nchannels * samplesize, in wave_write_header()
163 .framesize = nchannels * samplesize, in wave_write_header()
177 void wave_write_pcm(FILE *fp, int samplesize, in wave_write_pcm() argument
181 fwrite(pcm + nch * off * samplesize, nch * samplesize, count, fp); in wave_write_pcm()
Dwave.h36 int wave_read_header(FILE *fp, int *bitdepth, int *samplesize,
47 int wave_read_pcm(FILE *fp, int samplesize,
59 void wave_write_header(FILE *fp, int bitdepth, int samplesize,
69 void wave_write_pcm(FILE *fp, int samplesize,