Commit f188da6a authored by Gerhard Stein's avatar Gerhard Stein

HaltChannel fix

parent 498f4624
......@@ -185,6 +185,8 @@ void Audio::destroy()
{
stopAllSounds();
Mix_HaltChannel(-1);
if(!mSndChnlVec.empty())
{
mSndChnlVec.clear();
......
......@@ -55,10 +55,11 @@ stopSound()
mSoundPaused = true;
mSoundPlaying = false;
/*
if(Mix_Playing(mId))
{
Mix_HaltChannel(mId);
}
}*/
}
void CSoundChannel::setupSound( CSoundSlot &SndSlottoPlay,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment