[alsa-devel] Using snd_pcm_set_params() on a capture handle

Raymond Yau superquad.vortex2 at gmail.com
Tue Oct 27 06:01:31 CET 2015


>
> > Do your sound card driver support 0.5 second buffer?
>
> If it doesn't, it should return an error instead of just not working.

The application have to use snd_pcm_get_params after calling
snd_pcmset_params

snd_pcm_get_params ( snd_pcm_t * pcm,
snd_pcm_uframes_t * buffer_size,
snd_pcm_uframes_t * period_size
)

Get the transfer size parameters in a simple way.


More information about the Alsa-devel mailing list