aboutsummaryrefslogtreecommitdiff
path: root/kyra
diff options
context:
space:
mode:
authorMax Horn2004-12-27 00:27:00 +0000
committerMax Horn2004-12-27 00:27:00 +0000
commit67b311713d8f4cfcd460a9649e0075f24278a048 (patch)
treeb3cc2c445a34084ab1baa645c1ae818c44268eff /kyra
parent6670b2969a3669ae7bda7103407e8e5e22c2916a (diff)
downloadscummvm-rg350-67b311713d8f4cfcd460a9649e0075f24278a048.tar.gz
scummvm-rg350-67b311713d8f4cfcd460a9649e0075f24278a048.tar.bz2
scummvm-rg350-67b311713d8f4cfcd460a9649e0075f24278a048.zip
Added 'sound types' to the mixer - for now, only plain (for the premixer), SFX and music; volume is now controlled based on the sound type
svn-id: r16330
Diffstat (limited to 'kyra')
-rw-r--r--kyra/kyra.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kyra/kyra.cpp b/kyra/kyra.cpp
index 3ed497581d..b81bafb289 100644
--- a/kyra/kyra.cpp
+++ b/kyra/kyra.cpp
@@ -105,8 +105,8 @@ KyraEngine::KyraEngine(GameDetector *detector, OSystem *syst)
warning("Sound initialization failed.");
}
- _mixer->setVolume(ConfMan.getInt("sfx_volume"));
- _mixer->setMusicVolume(ConfMan.getInt("music_volume"));
+ _mixer->setVolumeForSoundType(SoundMixer::kSFXAudioDataType, ConfMan.getInt("sfx_volume"));
+ _mixer->setVolumeForSoundType(SoundMixer::kMusicAudioDataType, ConfMan.getInt("music_volume"));
// gets the game
if (detector->_game.features & GF_KYRA1) {