aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/illusions/sound.cpp')
-rw-r--r--engines/illusions/sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/illusions/sound.cpp b/engines/illusions/sound.cpp
index bbcf8ad75b..55bbf8661f 100644
--- a/engines/illusions/sound.cpp
+++ b/engines/illusions/sound.cpp
@@ -368,14 +368,17 @@ void SoundMan::fadeMidiMusic(int16 finalVolume, int16 duration) {
void SoundMan::setMusicVolume(uint8 volume) {
ConfMan.setInt("music_volume", volume);
_midiPlayer->syncVolume();
+ ConfMan.flushToDisk();
}
void SoundMan::setSfxVolume(uint8 volume) {
ConfMan.setInt("sfx_volume", volume);
+ ConfMan.flushToDisk();
}
void SoundMan::setSpeechVolume(uint8 volume) {
ConfMan.setInt("speech_volume", volume);
+ ConfMan.flushToDisk();
}
uint8 SoundMan::calcAdjustedVolume(const Common::String &volumeConfigKey, uint8 volume) {