I’ve initialized an FMOD System with 32 channels with the mode set to FMOD_INIT_NORMAL.

There’s an mp3 that was created with createStream(), with the mode set to FMOD_LOOP_NORMAL | FMOD_2D | FMOD_HARDWARE, and a wav file that was created with createSound(), with the mode set to FMOD_DEFAULT.

My program runs with the mp3 streaming and using up one channel – pressing a key will play the wav file that was created. Holding down that same key will start playing multiple copies of the sound at the same time, which is exactly what I want it to do, hence setting the number of channels to 32.
However, after the wav file has been played 31 times (an amount equal to the remaining number of channels when you count the mp3 that’s still playing in the background), pressing the key will only play one instance of the wav file at a time. It’s as if FMOD has used up all 32 of those channels that I asked it to create earlier, and is now only keeping track of one for the mp3 and one for the wav.

If you need to see any of my source code, let me know and I can post snippets of what I have.

Any input would be greatly appreciated.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.