0
0

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!

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

The flags I use are

FMOD_2D | FMOD_HARDWARE | FMOD_LOWMEM

In the System Init I specified 100 channels.

  • You must to post comments
0
0

Check the playsound example it lets you play as many sounds simultaneously as you can press.

  • You must to post comments
0
0

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?

  • You must to post comments
0
0

Something doesnt seem right here. How can a 4 second file only be 1kb?
4 seconds at the lowest (normal) rate is 8000 * 4 = 32,000 samples or 32kb if it was 8 bit, 64kb if it was 16bit data.

  • You must to post comments
0
0

Thanks for the help. Turns out the wave in question wasn’t saved out correctly.

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.