Lines Matching refs:sz
37 int (*fill)(void *buf, unsigned sz, void *cookie), in pcm_play() argument
42 unsigned sz, n; in pcm_play() local
63 sz = config.buffer_size; in pcm_play()
64 if (sz > sizeof(buf)) { in pcm_play()
71 if (fill(buf, sz, cookie)) in pcm_play()
73 if (write(afd, buf, sz) != sz) in pcm_play()
85 if (fill(buf, sz, cookie)) in pcm_play()
87 if (write(afd, buf, sz) != sz) in pcm_play()
125 int fill_buffer(void *buf, unsigned sz, void *cookie) in fill_buffer() argument
127 if (sz > avail) in fill_buffer()
129 memcpy(buf, next, sz); in fill_buffer()
130 next += sz; in fill_buffer()
131 avail -= sz; in fill_buffer()
196 unsigned sz, n; in wav_rec() local
247 sz = cfg.buffer_size; in wav_rec()
248 fprintf(stderr,"buffer size %d x %d\n", sz, cfg.buffer_count); in wav_rec()
249 if (sz > sizeof(buf)) { in wav_rec()
250 fprintf(stderr,"buffer size %d too large\n", sz); in wav_rec()
266 if (read(afd, buf, sz) != sz) { in wav_rec()
270 if (write(fd, buf, sz) != sz) { in wav_rec()
274 total += sz; in wav_rec()