I can’t seem to get a 1kb 4 second length wave to play in rapid succession. I load the wave as:
result = FMOD_System_CreateSound(m_pSystem, szName.c_str(), nFlags, 0, &sound);
I then call
result = FMOD_System_PlaySound(m_pSystem,FMOD_CHANNEL_FREE, m_vSounds[nIndex], false, &channel);
two seconds later I call the same line again.
It stops playing the original channel and then begins the new channel. Is there a fix to this, or am I missing something. Help!
- cib106 asked 10 years ago
The code I have written works just as you said for the example code. Every other sound I have tried, with the exception of the 1kb sound, worked correctly as stated in the FMOD Programmers API documentation. All the other sounds are 3kb or larger and are at least the same length. Could it be something with the file itself?
what are the flags you use to load a sound? If FMOD_CREATESTREAM or FMOD_UNIQUE are specified this will happen.
It might also be that you havent specified enough channels to play on and it has to re-use the one you played on previously.
Please login first to submit.