Hi,
I've been trying to figure out a way to stop all Fmod channels that are playing (simply because I don't keep track of all channels that can play a sound).
Here's what I've come up with, but unfortunately it doesn't work:
void CAudio::StopAll()
{
int *playingChannels = NULL;
mFModSystem->getChannelsPlaying(playingChannels);
for(int j=0;j<sizeof(playingChannels);++j)
{
FMOD::Channel *tempChannel;
mFModSystem->getChannel(playingChannels[j], &tempChannel);
tempChannel->stop();
}
delete[] playingChannels;
}
Any ideas?