in my program a sound shall start when a key is pressed, and end when the key is pressed again.
For playSound(..) I use FMOD_CHANNEL_REUSE.
The Problem is, when two keys are pressed very very fast after eachother, the same channel is used, and instead of starting two sounds, the first sound ist stopped immediately.
bool isplaying = false;
result = channels[i]->isPlaying(&isplaying);
result = system->playSound(FMOD_CHANNEL_REUSE, sounds[i], false, &channels[i]);
result = channels[i]->stop();
That makes the program unusable…
Thanks for help,
- fk185 asked 13 years ago
- You must login to post comments