Lines Matching refs:bufsize
170 unsigned bufsize; in play_file() local
274 bufsize = pcm->period_size; in play_file()
276 fprintf(stderr, "Aplay:bufsize = %d\n", bufsize); in play_file()
281 frames = (pcm->flags & PCM_MONO) ? (bufsize / 2) : (bufsize / 4); in play_file()
336 memset(dst_addr, 0x0, bufsize); in play_file()
339 if (remainingData < bufsize) { in play_file()
340 bufsize = remainingData; in play_file()
345 err = read(fd, dst_addr , bufsize); in play_file()
352 remainingData -= bufsize; in play_file()
434 bufsize = pcm->period_size; in play_file()
436 data = calloc(1, bufsize); in play_file()
438 fprintf(stderr, "Aplay:could not allocate %d bytes\n", bufsize); in play_file()
444 if (remainingData < bufsize) in play_file()
445 bufsize = remainingData; in play_file()
448 while (read(fd, data, bufsize) > 0) { in play_file()
449 if (pcm_write(pcm, data, bufsize)){ in play_file()
455 memset(data, 0, bufsize); in play_file()
458 remainingData -= bufsize; in play_file()
461 if (remainingData < bufsize) in play_file()
462 bufsize = remainingData; in play_file()