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