diff options
author | Robert Göffringmann | 2004-01-07 17:47:46 +0000 |
---|---|---|
committer | Robert Göffringmann | 2004-01-07 17:47:46 +0000 |
commit | 8030f1b1483da8a96b7b8ff6bab246ffd3faad38 (patch) | |
tree | d8b6fc6bde1de078f6bd8fc69308620059d0f584 /sword1/sword1.cpp | |
parent | c46d2f05304b1b871df549bba9b2aed0656b7c44 (diff) | |
download | scummvm-rg350-8030f1b1483da8a96b7b8ff6bab246ffd3faad38.tar.gz scummvm-rg350-8030f1b1483da8a96b7b8ff6bab246ffd3faad38.tar.bz2 scummvm-rg350-8030f1b1483da8a96b7b8ff6bab246ffd3faad38.zip |
implemented volume control panel
svn-id: r12220
Diffstat (limited to 'sword1/sword1.cpp')
-rw-r--r-- | sword1/sword1.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index 20af1c038f..ce2d9db887 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -109,11 +109,15 @@ void SwordEngine::initialize(void) { _logic = new SwordLogic(_objectMan, _resMan, _screen, _mouse, _sound, _music, _menu); _mouse->useLogicAndMenu(_logic, _menu); - _music->setVolume((uint8)ConfMan.getInt("music_volume")); + uint8 musicVol = (uint8)ConfMan.getInt("music_volume"); uint8 speechVol = (uint8)ConfMan.getInt("speech_volume"); + uint8 sfxVol = (uint8)ConfMan.getInt("sfx_volume"); if (!speechVol) speechVol = 192; - _sound->setVolume((uint8)ConfMan.getInt("sfx_volume"), speechVol); + + _music->setVolume(musicVol, musicVol); // these routines expect left and right volume, + _sound->setSpeechVol(speechVol, speechVol); // but our config manager doesn't support it. + _sound->setSfxVol(sfxVol, sfxVol); _systemVars.justRestoredGame = _systemVars.currentCD = _systemVars.gamePaused = 0; @@ -151,7 +155,7 @@ void SwordEngine::initialize(void) { _logic->initialize(); _objectMan->initialize(); _mouse->initialize(); - _control = new SwordControl(_resMan, _objectMan, _system, _mouse, _music, getSavePath()); + _control = new SwordControl(_resMan, _objectMan, _system, _mouse, _sound, _music, getSavePath()); } void SwordEngine::reinitialize(void) { |