27 Oct
2015
27 Oct
'15
6:01 a.m.
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.