properly abstract the volume so we don't touch prefsman in RSM

fixes crash
This commit is contained in:
Glenn Maynard
2003-01-19 19:55:24 +00:00
parent ee211f3b74
commit bfd2d10a15
9 changed files with 54 additions and 21 deletions
@@ -43,7 +43,6 @@ void RageSound_DSound_Software::MixerThread()
while(!shutdown) {
Sleep(10);
while(GetData())
;
}
@@ -179,9 +178,11 @@ RageSound_DSound_Software::~RageSound_DSound_Software()
{
/* Signal the mixing thread to quit. */
shutdown = true;
LOG->Trace("Shutting down mixer thread ...");
LOG->Trace("Shutting down mixer thread %p ...", MixerThreadPtr);
LOG->Flush();
SDL_WaitThread(MixerThreadPtr, NULL);
LOG->Trace("Mixer thread shut down.");
LOG->Flush();
delete str_ds;
}