Re: Calibrating Buffer Size and Count
Chris Robinson <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On Thursday, May 27, 2010 10:10:09 pm Kip Warner wrote: > Hey everyone, > > A few questions on buffers and sources. > > Besides hearing the obvious stutter and clicks in a streamable source > and then updating the buffer size and number of buffers accordingly for > it, is there any way to reasonably determine their optimal size and > number at runtime? I think 4 or 8 buffers to cover one or two seconds worth of audio would be a good number and size for a stream. Many cache-able sound effects in games can exceed a second, I think, so I don't see it as a problem for a stream buffer size. And if someone has stuttering problems with that, there are probably going to be other issues, too. > In games, sound effects are generally buffered in full, while anything > longer, like music, is streamed? Music and maybe voice tracks (sounds that can be several seconds and won't be used again) could be streamed. In general, sound effects are ideally buffered in full and kept around for reuse, yes. _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal