Re: Why use more than 2 buffers?

Jimmy Gervais <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
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 <[email protected]>

> 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
> [email protected]
> http://opensource.creative.com/mailman/listinfo/openal
>

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.