From 2301ce3e4512783b5935e25f7d2cd2a02d825840 Mon Sep 17 00:00:00 2001 From: dborth Date: Sat, 10 Jul 2010 17:27:48 +0000 Subject: [PATCH] fix sfx vol --- source/gui/gui_sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gui/gui_sound.cpp b/source/gui/gui_sound.cpp index 789f49f..4dcd5e2 100644 --- a/source/gui/gui_sound.cpp +++ b/source/gui/gui_sound.cpp @@ -42,7 +42,7 @@ void GuiSound::Play() switch(type) { case SOUND_PCM: - vol = 2.55f*(volume*GCSettings.SFXVolume); + vol = 0.0255f*(volume*GCSettings.SFXVolume); voice = ASND_GetFirstUnusedVoice(); if(voice >= 0) ASND_SetVoice(voice, VOICE_STEREO_16BIT, 48000, 0, @@ -134,7 +134,7 @@ void GuiSound::SetVolume(int vol) if(voice < 0) return; - int newvol = 2.55f*(volume*GCSettings.SFXVolume); + int newvol = 0.0255f*(volume*GCSettings.SFXVolume); switch(type) {