[Openal] Audio Library Design
Kip Warner
kip at thevertigo.com
Thu Sep 23 12:17:31 PDT 2010
On Thu, 2010-09-23 at 16:24 -0230, Eric Stock wrote:
> I look forward to getting some feedback on these designs.
> Note, I am only
> talking about load and play sounds here. I think I understand
> how to handle
> the streaming of an ogg file, by loading the compressed data
> into memory and
> then decompressing and streaming from the location in memory.
Hey Eric. I recently had to design something very similar, the audio
module of my game engine (www.avaneya.com). What I've done, and many
others have, is to make a distinction between static and streaming audio
sources. Static are loaded once in their entirety into a buffer (a short
sound effect), and streaming are loaded a portion at a time from disk
(e.g. music).
I would also recommend you have the SetVolume() behaviour as a method of
the sound object itself, rather than as part of your singleton. That's
subjective, of course, and entirely up to you.
You can take a look at the design I came up with which might be useful
to you here on p12 of the design document PDF:
https://www.avaneya.com/temp/design/
Hope that helps,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://opensource.creative.com/pipermail/openal/attachments/20100923/7288b560/attachment.bin
More information about the Openal
mailing list