There is a part on that in my sigOriginally Posted by chronozphere
My OpenAL audio wrapper with Intelligent Source Manager:
http://www.pascalgamedevelopment.com...?p=25428#25428
That's the exact thing i use in my game, plus some additional stuff, you can see it has some advanced stuff such as some soucre management, and sound distance culling, etc...
My openal lib just initializes all sources when it loads, and then uses the sources handles whenever it needs them.. it queves a wave buffer, and after it plays back it stops.
The wrapper for openal is more than just a wrapper and sources manager, it actually supports pausing the entire system at any state, which makes it possible in the future to actually halt the program, save the audio library state to disk, and reload it back later, i haven't implemented the actual routines for saving and loading yet, but it has everything ready for that and pausing already works.
Bookmarks