Searched refs:nch (Results 1 – 4 of 4) sorted by relevance
/liblc3-3.7.0-3.6.0/tools/ |
D | elc3.c | 161 int srate_hz, nch, nsamples; in main() local 165 &pcm_sbits, &pcm_sbytes, &srate_hz, &nch, &nsamples) < 0) in main() 184 if (nch < 1 || nch > 2) in main() 185 error(EINVAL, "Number of channels %d", nch); in main() 192 frame_us, enc_srate_hz, p.bitrate, nch, enc_samples); in main() 200 int frame_bytes = lc3_frame_bytes(frame_us, p.bitrate / nch); in main() 207 for (int ich = 0; ich < nch; ich++) in main() 220 int nread = wave_read_pcm(fp_in, pcm_sbytes, nch, frame_samples, pcm); in main() 222 memset(pcm + nread * nch * pcm_sbytes, 0, in main() 223 nch * (frame_samples - nread) * pcm_sbytes); in main() [all …]
|
D | dlc3.c | 164 int frame_us, srate_hz, nch, nsamples; in main() local 166 if (lc3bin_read_header(fp_in, &frame_us, &srate_hz, &nch, &nsamples) < 0) in main() 169 if (nch < 1 || nch > 2) in main() 170 error(EINVAL, "Number of channels %d", nch); in main() 186 pcm_sbits, pcm_sbytes, pcm_srate_hz, nch, pcm_samples); in main() 200 for (int ich = 0; ich < nch; ich++) in main() 213 int frame_bytes = lc3bin_read_data(fp_in, nch, in); in main() 227 memset(pcm, 0, nch * frame_samples * pcm_sbytes); in main() 229 for (int ich = 0; ich < nch; ich++) in main() 232 pcm_fmt, pcm + ich * pcm_sbytes, nch); in main() [all …]
|
D | wave.c | 132 int nch, int count, void *buffer) in wave_read_pcm() argument 134 return fread(buffer, nch * samplesize, count, fp); in wave_read_pcm() 178 const void *_pcm, int nch, int off, int count) in wave_write_pcm() argument 181 fwrite(pcm + nch * off * samplesize, nch * samplesize, count, fp); in wave_write_pcm()
|
D | wave.h | 48 int nch, int count, void *_buffer); 70 const void *pcm, int nch, int off, int count);
|