From 3a70b367c0fa09e9f3149c8c7081a0495ac6cee4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 11 Jun 2006 19:07:54 +0000 Subject: [PATCH] temporary fix for crash (proper fix will take more time) --- stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp index 36c91d1a32..aa57a62bda 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp @@ -180,7 +180,9 @@ void RageSound_Generic_Software::DecodeThread() for( unsigned i = 0; i < ARRAYSIZE(sounds); ++i ) { /* The volume can change while the sound is playing; update it. */ - if( sounds[i].state == sound::PLAYING || sounds[i].state == sound::STOPPING ) + /* XXX: We can't access snd when in STOPPING; it doesn't exist anymore. */ + // if( sounds[i].state == sound::PLAYING || sounds[i].state == sound::STOPPING ) + if( sounds[i].state == sound::PLAYING ) sounds[i].volume = sounds[i].snd->GetAbsoluteVolume(); }