Paul D. DeRocco wrote:
> If my software naturally produces samples in 64-frame chunks, but the
> device is set up to have 256-frame periods, is there any advantage to
> accumulating four chunks in my own buffer and writing entire periods,
> versus writing each chunk separately and expecting to be blocked every
> fourth time?

No.  And writing samples to the buffer earlier will slightly decrease
the risk of an underrun.

> Alternatively, would the extra overhead of reducing the period size to
> 64 (96KHz stereo 32-bit LE on a Raspberry Pi 3) be significant?

That is something you have to measure yourself ...


Check out the vibrant tech community on one of the world's most
engaging tech sites,!
Alsa-user mailing list

Reply via email to