Lines Matching refs:chunk
125 int chunk = audio_MIN (to_mix, hw->samples - rpos);
128 hw->clip (pa->pcm_buf, src, chunk);
131 chunk << hw->info.shift, &error) < 0) {
136 rpos = (rpos + chunk) % hw->samples;
137 to_mix -= chunk;
220 int chunk = audio_MIN (to_grab, hw->samples - wpos);
224 chunk << hw->info.shift, &error) < 0) {
229 hw->conv (hw->conv_buf + wpos, buf, chunk, &nominal_volume);
230 wpos = (wpos + chunk) % hw->samples;
231 to_grab -= chunk;