Quote Originally Posted by chronozphere
P.S. you don't happen to be on vista, are you?
eeh... actualy i am Are there issues with vista then?

I rewrote my sound module. Now, i give each soundbuffer a predefined ammount of sources, so i dont have to change the buffer for any source. The problem seems to be solved, but ATM i have many unused sources. Is that a problem?

You have experience with OpenAL. Can you explain me how your Sound-module deals with buffers/sources?

Thanx
There is a part on that in my sig

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.