Lines Matching defs:frames
307 int frames, struct bat *bat)
311 int remain = frames;
316 if (err == -EAGAIN || (err >= 0 && err < frames)) {
352 int frames = sndpcm->period_size; /* frame count */
358 err = handleoutput(bat, sndpcm->buffer, bytes, frames);
362 err = write_to_pcm(sndpcm, frames, bat);
385 int frames = bytes * 8 / sndpcm->frame_bits; /* frame count */
406 err = generate_input_data(bat, sndpcm->buffer, bytes, frames);
423 err = write_to_pcm(sndpcm, frames, bat);
511 int frames, struct bat *bat)
515 int remain = frames;
552 int size, frames;
554 int bytes_count = bat->frames * bat->frame_size;
575 frames = size * 8 / sndpcm->frame_bits;
578 err = read_from_pcm(sndpcm, frames, bat);
612 int frames = sndpcm->period_size;
614 int bytes_count = bat->frames * bat->frame_size;
634 err = read_from_pcm(sndpcm, frames, bat);
642 err = handleinput(bat, sndpcm->buffer, frames);