[alsa-devel] How can I make sure the period size is a multiple of 16?

Trent Piepho xyzzy at speakeasy.org
Wed Sep 5 11:55:32 CEST 2007


On Wed, 5 Sep 2007, Clemens Ladisch wrote:
> Eliot Blennerhassett wrote:
> > Set snd_pcm_hardware.period_bytes_min to 16 or is that 16 * samplesize?
>
> This value is measured in bytes.
>
> > snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 16);
>
> This parameter is measured in frames.

Isn't SNDRV_PCM_HW_PARAM_PERIOD_SIZE measured in frames, and
SNDRV_PCM_HW_PARAM_PERIOD_BYTES in bytes?


More information about the Alsa-devel mailing list