diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index f0d3a7b13f..fa8a62d586 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -264,9 +264,9 @@ void RageSoundManager::SetPrefs(float MixVol) SoundMixBuffer::SoundMixBuffer() { - vol = SOUNDMAN->GetMixVolume(); bufsize = used = 0; mixbuf = NULL; + SetVolume( SOUNDMAN->GetMixVolume() ); } SoundMixBuffer::~SoundMixBuffer() @@ -274,6 +274,11 @@ SoundMixBuffer::~SoundMixBuffer() free(mixbuf); } +void SoundMixBuffer::SetVolume( float f ) +{ + vol = f; +} + void SoundMixBuffer::write(const Sint16 *buf, unsigned size) { if(bufsize < size)