OpenAL question of priority of source, and music

Started by
1 comment, last by Ohforf sake 13 years, 10 months ago
If I have more sound sources than there are channels, does OpenAL simply drop the most silent sounds? Is there a way to bypass their priority system to make sure the music source is never dropped, no matter how many and loud effect sources there are in the game world?
Advertisement
Most people use their own source management, keeping music playing all the time, and dropping sounds only when the number of sounds playing is greater than or equal to the current number of sources. You could do something similar, and add a priority to the sounds and cut some off as necessary.
Quote:If I have more sound sources than there are channels, does OpenAL simply drop the most silent sounds?


You won't get that far. OpenAL won't let you create more sources than the hardware can handle. You will get an AL_OUT_OF_MEMORY when you try to create more.

This topic is closed to new replies.

Advertisement