6 Mar
2011
6 Mar
'11
12:49 p.m.
Hi there.
I'm a bit puzzled as to what values are considered valids and which one aren't when it comes to setting the buffer time with snd_pcm_hw_params_set_buffer_time_near.
For example setting a value of 295ms : all ok. From 300ms to 450ms -> "Invalid argument". but 500ms for example is okay.
What's the logic behind it ? It's obviously related to the sampling rate, the audio format and the number of channels ; as the values giving me "Invalid argument" change then.
Any comments would be greatly appreciated.
Thanks! JY