[alsa-devel] Problem with "set_period_size"

Clemens Ladisch clemens at ladisch.de
Thu Feb 23 15:59:44 CET 2012


Alicia Romero wrote:
>     stream->pb_frames = (snd_pcm_uframes_t) 640;
>     snd_pcm_hw_params_set_period_size (stream->pb_pcm, params,
>                         &stream->pb_frames, NULL);

You forgot to check the return value.  I'd guess it's -EINVAL.


Regards,
Clemens


More information about the Alsa-devel mailing list