[Openal] Why use more than 2 buffers?
jimbo8086 at gmail.com
Thu Dec 10 15:00:20 PST 2009
In my current project, I use 3 buffers for real-time audio and by real-time,
I mean the calculations are done in real-time. I start at half the second
buffer and by the time I switch to the second one, I'm writing to the third
one and so on. It is just a precaution. I think I came up with that solution
since I planned to switch buffers with a separate dedicated thread and
didn't want the program to attempt writing to the buffer being read.
Otherwise, I don't know either why one would use more than two buffers.
2009/12/10 Nate Foreman <nforeman at quantumsignal.com>
> We all know that OpenAl sources are capable of queuing multiple buffers for
> playback. The question is, why would you ever need to queue more than 2
> buffers at a given time? Aren't two buffers sufficient for the
> double-buffering technique used to continuously streaming audio data?
> Openal mailing list
> Openal at opensource.creative.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openal