adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-commits] master 1e146a9: UPDATED to adjust the sfx volume tog


From: Kai Sterker
Subject: [adonthell-commits] master 1e146a9: UPDATED to adjust the sfx volume together with the music volume
Date: Sat, 14 Apr 2018 17:45:01 -0400 (EDT)

branch: master
commit 1e146a95853a5cd8547197c99b2d250f84e3a3e2
Author: Kai Sterker <address@hidden>
Commit: Kai Sterker <address@hidden>

    UPDATED to adjust the sfx volume together with the music volume
---
 src/audio.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio.cc b/src/audio.cc
index 87c9cca..d462df3 100644
--- a/src/audio.cc
+++ b/src/audio.cc
@@ -226,7 +226,7 @@ void audio::set_background_volume(int volume) {
     background_volume = volume;
 
   // Scales 0-100% to 0-128
-  // Mix_Volume(-1, int(background_volume * 1.28));
+  Mix_Volume(-1, int(background_volume * 1.28));
   Mix_VolumeMusic(int(background_volume * 1.28));
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]