Re: Optimal buffersize and GUI
Chris Robinson <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On Monday, May 31, 2010 2:58:41 pm Fruskus wrote: > Jimmy Gervais wrote: > > Hi, > > > > you used a buffer size of 1764? I've never been able to go under 8192. > > Isn't > > there a limit? > > I'm not very sure about it. I just made some tests, using low values as > long as they > could be divided by the block alignment value. Any buffer size above 0 can be used, as long as it's a multiple of the format's block size. You just need to make sure to have enough buffers so that they don't all run out before they can be updated, and the amount that is depends on the buffers' frequency, how fast your app updates, and the device/implementation. I've haven't been very successful at finding a good buffering/queueing method to handle low-latency/real-time audio on top of openal (ie. when you need to play what you just got right now). The more you queue, the more you have to wait before new samples will be heard, and the less you queue, the bigger the chance for underruns. _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal