mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-15 04:29:37 +00:00
Fix audio shutdown crashes
This commit is contained in:
@@ -354,9 +354,9 @@ void KillMusic (void)
|
||||
|
||||
if (dontLoadMusic)
|
||||
return;
|
||||
|
||||
theErr = DumpMusicSounds();
|
||||
|
||||
theErr = CloseMusicChannel();
|
||||
theErr = DumpMusicSounds();
|
||||
musicMutex->Destroy();
|
||||
}
|
||||
|
||||
|
||||
@@ -361,8 +361,8 @@ void KillSound (void)
|
||||
if (dontLoadSounds)
|
||||
return;
|
||||
|
||||
DumpBufferSounds();
|
||||
CloseSoundChannels();
|
||||
DumpBufferSounds();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- SoundBytesNeeded
|
||||
|
||||
Reference in New Issue
Block a user