Lines Matching refs:sz
39 int (*fill)(void *buf, unsigned sz, void *cookie), in pcm_play() argument
46 unsigned sz, n; in pcm_play() local
67 sz = config.buffer_size; in pcm_play()
68 if (sz > sizeof(buf)) { in pcm_play()
75 if (fill(buf, sz, cookie)) in pcm_play()
77 if (write(afd, buf, sz) != (ssize_t) sz) in pcm_play()
89 if (fill(buf, sz, cookie)) in pcm_play()
91 if (write(afd, buf, sz) != (ssize_t) sz) in pcm_play()
128 int fill_buffer(void *buf, unsigned sz, void *cookie) in fill_buffer() argument
130 if (sz > avail) in fill_buffer()
132 memcpy(buf, next, sz); in fill_buffer()
133 next += sz; in fill_buffer()
134 avail -= sz; in fill_buffer()
198 unsigned sz; in wav_rec() local
249 sz = cfg.buffer_size; in wav_rec()
250 fprintf(stderr,"buffer size %d x %d\n", sz, cfg.buffer_count); in wav_rec()
251 if (sz > sizeof(buf)) { in wav_rec()
252 fprintf(stderr,"buffer size %d too large\n", sz); in wav_rec()
268 if (read(afd, buf, sz) != (ssize_t) sz) { in wav_rec()
272 if (write(fd, buf, sz) != (ssize_t) sz) { in wav_rec()
276 total += sz; in wav_rec()