0
0

When I call playSound
[code:509s6159]m_channel->setPriority(0);
FMOD_RESULT result = m_system->playSound(FMOD_CHANNEL_FREE, m_sound, false, &m_channel);
m_channel->setPriority(255);[/code:509s6159]
I hear the sound.

But if I play sound 30 times, I don’t hear songs(In my test app, I have a button, when i press it, I play sound. First 30 times, sonds works, but after 30 pressed, I dont hear next sounds). But, even if I don’t hear the sound, playSound returns FMOD_OK. I don’t have any idea, what can be wrong.

  • You must to post comments
0
0

Firstly, you cannot call setPriority on a channel before playSound.

If you keep playing sounds you will eventually run out of channels, I recommend reading the "Channel management and virtual voices" section of the fmodex.chm docs.

  • You must to post comments
0
0

Thank you for reply. The test sound is short(5 seconds), but have I end sounds manualy?

Is any callback on sound end? I want set channels with ended sounds prioryty 256(lowest).

  • You must to post comments
0
0

If the sound ends naturally its channel will be relinquished, you don’t need to do anything.

Perhaps you could post some more of your code?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.