Lines Matching defs:frames

293 					  snd_pcm_uframes_t frames)
305 if (file->rbuf_size < frames) {
306 SYSERR("requested more frames than pcm buffer");
310 bytes = snd_pcm_frames_to_bytes(pcm, frames);
461 snd_pcm_uframes_t frames)
464 while (frames > 0) {
466 snd_pcm_uframes_t n = frames;
476 frames -= n;
560 static snd_pcm_sframes_t snd_pcm_file_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
566 n = snd_pcm_frames_to_bytes(pcm, frames);
568 frames = snd_pcm_bytes_to_frames(pcm, file->wbuf_used_bytes);
569 err = snd_pcm_rewind(file->gen.slave, frames);
588 static snd_pcm_sframes_t snd_pcm_file_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
594 n = snd_pcm_frames_to_bytes(pcm, frames);
596 frames = snd_pcm_bytes_to_frames(pcm, file->wbuf_size_bytes - file->wbuf_used_bytes);
597 err = INTERNAL(snd_pcm_forward)(file->gen.slave, frames);
647 snd_pcm_sframes_t frames;
649 frames = _snd_pcm_readi(file->gen.slave, buffer, size);
650 if (frames <= 0)
651 return frames;
654 snd_pcm_file_areas_read_infile(pcm, areas, 0, frames);
656 if (snd_pcm_file_add_frames(pcm, areas, 0, frames) < 0) {
663 return frames;
671 snd_pcm_sframes_t frames;
673 frames = _snd_pcm_readn(file->gen.slave, bufs, size);
674 if (frames <= 0)
675 return frames;
678 snd_pcm_file_areas_read_infile(pcm, areas, 0, frames);
680 if (snd_pcm_file_add_frames(pcm, areas, 0, frames) < 0) {
687 return frames;
715 snd_pcm_uframes_t *offset, snd_pcm_uframes_t *frames)
720 result = snd_pcm_mmap_begin(file->gen.slave, areas, offset, frames);
732 snd_pcm_file_areas_read_infile(pcm, *areas, *offset, *frames);