0
0

hi,

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.

[code]
bool isplaying = false;
result = channels[i][0]->isPlaying(&isplaying);
check(result);
if(!isplaying)
{
result = system->playSound(FMOD_CHANNEL_REUSE, sounds[i], false, &channels[i][0]);
check(result);
}
else
{
result = channels[i][0]->stop();
check(result);
}
[/code]

That makes the program unusable…

Thanks for help,
Flo[/code]

  • You must to post comments
0
0

ok, thanks

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.