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

Clemens Ladisch cladisch at fastmail.net
Wed Sep 5 11:08:03 CEST 2007


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.


HTH
Clemens


More information about the Alsa-devel mailing list