From d47be89f0ad2cd4ef7a1eb81ab5be87a06dcd462 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 15 Sep 2009 00:53:02 +0000 Subject: [PATCH] Removed broken music fading code from snd_dma. Fixes Bugzilla #3757. --- code/client/snd_dma.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/code/client/snd_dma.c b/code/client/snd_dma.c index acda0f52..a8ce1212 100644 --- a/code/client/snd_dma.c +++ b/code/client/snd_dma.c @@ -1353,17 +1353,13 @@ void S_UpdateBackgroundTrack( void ) { byte raw[30000]; // just enough to fit in a mac stack frame int fileBytes; int r; - static float musicVolume = 0.5f; if(!s_backgroundStream) { return; } - // graeme see if this is OK - musicVolume = (musicVolume + (s_musicVolume->value * 2))/4.0f; - // don't bother playing anything if musicvolume is 0 - if ( musicVolume <= 0 ) { + if ( s_musicVolume->value <= 0 ) { return; } @@ -1397,7 +1393,7 @@ void S_UpdateBackgroundTrack( void ) { { // add to raw buffer S_Base_RawSamples( 0, fileSamples, s_backgroundStream->info.rate, - s_backgroundStream->info.width, s_backgroundStream->info.channels, raw, musicVolume ); + s_backgroundStream->info.width, s_backgroundStream->info.channels, raw, s_musicVolume->value ); } else {