aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Page2008-07-05 22:04:15 +0000
committerChristopher Page2008-07-05 22:04:15 +0000
commit6d1350638af7f63d4582e33c83805909aadc5873 (patch)
tree7b6b4c39462ac68982f45067de538ee273dd58e7
parenta14a0d16c1d3038b320a21246443e6d855fc2787 (diff)
downloadscummvm-rg350-6d1350638af7f63d4582e33c83805909aadc5873.tar.gz
scummvm-rg350-6d1350638af7f63d4582e33c83805909aadc5873.tar.bz2
scummvm-rg350-6d1350638af7f63d4582e33c83805909aadc5873.zip
Queen sound settings are now configurable through the GMM
svn-id: r32922
-rw-r--r--engines/queen/queen.cpp4
-rw-r--r--engines/queen/queen.h1
-rw-r--r--engines/queen/sound.cpp3
3 files changed, 6 insertions, 2 deletions
diff --git a/engines/queen/queen.cpp b/engines/queen/queen.cpp
index 5cd94aa2ae..d9890d0c57 100644
--- a/engines/queen/queen.cpp
+++ b/engines/queen/queen.cpp
@@ -180,6 +180,10 @@ void QueenEngine::checkOptionSettings() {
}
}
+void QueenEngine::syncSoundSettings() {
+ _sound->setVolume(ConfMan.getInt("music_volume"));
+}
+
void QueenEngine::readOptionSettings() {
_sound->setVolume(ConfMan.getInt("music_volume"));
_sound->musicToggle(!ConfMan.getBool("music_mute"));
diff --git a/engines/queen/queen.h b/engines/queen/queen.h
index 29d568e760..6652a08196 100644
--- a/engines/queen/queen.h
+++ b/engines/queen/queen.h
@@ -97,6 +97,7 @@ public:
void checkOptionSettings();
void readOptionSettings();
void writeOptionSettings();
+ virtual void syncSoundSettings();
int talkSpeed() const { return _talkSpeed; }
void talkSpeed(int speed) { _talkSpeed = speed; }
diff --git a/engines/queen/sound.cpp b/engines/queen/sound.cpp
index d70fe7209d..0801d72ca4 100644
--- a/engines/queen/sound.cpp
+++ b/engines/queen/sound.cpp
@@ -224,8 +224,7 @@ void PCSound::playSpeech(const char *base) {
void PCSound::setVolume(int vol) {
Sound::setVolume(vol);
- // Set mixer music volume to maximum, since music volume is regulated by MusicPlayer's MIDI messages
- _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, Audio::Mixer::kMaxMixerVolume);
+ _mixer->setVolumeForSoundType(Audio::Mixer::kPlainSoundType, vol);
_music->setVolume(vol);
}