Lines Matching refs:samples
409 /* Convert from bytes to frames (aka samples) */
410 hw->samples = cbBuf >> hw->info.shift;
467 cFramesAvail = cbAvail >> hw->info.shift; /* bytes => samples */
473 /* split request at the end of our samples buffer */
474 cFramesToWrite = audio_MIN (csSamples, hw->samples - hw->rpos);
484 LogRel(("Pulse: Failed to write %d samples: %s\n",
488 hw->rpos = (hw->rpos + cFramesToWrite) % hw->samples;
576 hw->samples = audio_MIN(pPulse->BufAttr.fragsize * 10, pPulse->BufAttr.maxlength)
627 cFramesToRead = audio_MIN(cFramesAvail, hw->samples - audio_pcm_hw_get_live_in(hw));
647 if (hw->wpos + cFramesToPeek > hw->samples)
649 int cFramesDelta = hw->samples - hw->wpos;
670 hw->wpos = (hw->wpos + cFramesToPeek) % hw->samples;