aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_real_life.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-05 21:11:06 -0400
committerPaul Gilbert2017-09-05 21:11:06 -0400
commit0c2fc12756311baf3457718fae7e9394aea390b8 (patch)
tree4ce13fb3a31c2da4d79657ed7a1ddd3f3056fed5 /engines/titanic/pet_control/pet_real_life.cpp
parent128edeebda490794d0ce78d3d6d84beab29c2246 (diff)
downloadscummvm-rg350-0c2fc12756311baf3457718fae7e9394aea390b8.tar.gz
scummvm-rg350-0c2fc12756311baf3457718fae7e9394aea390b8.tar.bz2
scummvm-rg350-0c2fc12756311baf3457718fae7e9394aea390b8.zip
TITANIC: Hook up in-game sound sliders to ScummVM volumes
Diffstat (limited to 'engines/titanic/pet_control/pet_real_life.cpp')
-rw-r--r--engines/titanic/pet_control/pet_real_life.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_real_life.cpp b/engines/titanic/pet_control/pet_real_life.cpp
index 57d81c739e..ff87a2fab4 100644
--- a/engines/titanic/pet_control/pet_real_life.cpp
+++ b/engines/titanic/pet_control/pet_real_life.cpp
@@ -123,6 +123,12 @@ void CPetRealLife::addButton(CPetGlyph *glyph) {
}
}
-
+void CPetRealLife::syncSoundSettings() {
+ for (CPetGlyphs::iterator i = _glyphs.begin(); i != _glyphs.end(); ++i) {
+ CPetSound *sound = dynamic_cast<CPetSound *>(*i);
+ if (sound)
+ sound->setSliders();
+ }
+}
} // End of namespace Titanic