use m_fSoundVolume

This commit is contained in:
Glenn Maynard
2003-01-11 04:04:15 +00:00
parent 835c8c3b06
commit 875108d691
4 changed files with 8 additions and 9 deletions
+2 -3
View File
@@ -9,6 +9,7 @@
#include "RageSound.h"
#include "RageLog.h"
#include "RageTimer.h"
#include "PrefsManager.h"
#include "arch/arch.h"
#include "arch/Sound/RageSoundDriver.h"
@@ -267,13 +268,11 @@ void RageSoundManager::PlayMusic(CString file, bool loop, float start_sec, float
SoundMixBuffer::SoundMixBuffer()
{
vol = .5;
vol = PREFSMAN->m_fSoundVolume;
}
void SoundMixBuffer::write(const Sint16 *buf, unsigned size)
{
size /= 2;
if(mixbuf.size() < size)
{
basic_string<Sint32> empty(size-mixbuf.size(), 0);