Lines Matching full:bufsize
180 unsigned xfer, bufsize;
250 bufsize = pcm->period_size;
252 fprintf(stderr, "Arec:bufsize = %d\n", bufsize);
269 frames = bufsize / 2;
271 frames = bufsize / 8;
273 frames = bufsize / 12;
275 frames = bufsize / 4;
320 if (write(fd, dst_addr, bufsize) != bufsize) {
321 fprintf(stderr, "Arec:could not write %d bytes\n", bufsize);
334 rec_size += bufsize;
335 hdr.data_sz += bufsize;
346 bufsize = pcm->period_size;
353 data = calloc(1, bufsize);
355 fprintf(stderr, "Arec:could not allocate %d bytes\n", bufsize);
359 while (!pcm_read(pcm, data, bufsize)) {
360 if (write(fd, data, bufsize) != bufsize) {
361 fprintf(stderr, "Arec:could not write %d bytes\n", bufsize);
364 rec_size += bufsize;
365 hdr.data_sz += bufsize;