Priming buffer
Hello
I'm trying to implement a function where a client function can be called to fill a playback pcm's buffer, before it is started. It doesn't quite work as I expected though, the transient sounds muted. On the other hand, unless I fill the buffers before hand (normally with zeros), I get a burst of noise. But anyway, maybe my goal can be accomplished with the help of ALSA-lib? I've taken a good look at the sw_params interface, but I don't quite understand the intention of some of the functions even after browsing the docs. What's the purpose of set_start_threshold? Will a start threshold equivalent to buffer size mean the pcm is not actually started before the buffer is full, even after snd_pcm_start has been called (so that the buffer is in effect primed)? Sorry for bothering you guys about the seemingly obvious, but the documentation _is_ a bit brief regarding certain things.
Thanks
Arve Knudsen
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Quoted 1 line · Arve Knudsen
What's the purpose of
set_start_threshold?
The stream will automatically start when the buffer has been filled up to the amount specified by start_threshold.
HTH
Clemens
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf