diff options
author | Eugene Sandulenko | 2014-04-19 14:06:34 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2014-04-19 14:06:34 +0300 |
commit | 559f51e29eba41b7a6ab63801bc2196ce9b6335a (patch) | |
tree | 5cabb97e156625725f530d58f27babf41f02ea1d /engines/fullpipe | |
parent | 3b1af18d92ecf7f6cfe5d0eb0aeae1221530942a (diff) | |
download | scummvm-rg350-559f51e29eba41b7a6ab63801bc2196ce9b6335a.tar.gz scummvm-rg350-559f51e29eba41b7a6ab63801bc2196ce9b6335a.tar.bz2 scummvm-rg350-559f51e29eba41b7a6ab63801bc2196ce9b6335a.zip |
FULLPIPE: Implement ModalMainMenu::updateVolume()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/modal.cpp | 11 | ||||
-rw-r--r-- | engines/fullpipe/modal.h | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp index 00e9bf8824..5c73dcfe08 100644 --- a/engines/fullpipe/modal.cpp +++ b/engines/fullpipe/modal.cpp @@ -1025,7 +1025,16 @@ bool ModalMainMenu::init(int counterdiff) { } void ModalMainMenu::updateVolume() { - warning("STUB: ModalMainMenu::updateVolume()"); + if (g_fp->_soundEnabled ) { + for (int s = 0; s < g_fp->_currSoundListCount; s++) + for (int i = 0; i < g_fp->_currSoundList1[s]->getCount(); i++) { + updateSoundVolume(g_fp->_currSoundList1[s]->getSoundByIndex(i)); + } + } +} + +void ModalMainMenu::updateSoundVolume(Sound *snd) { + warning("STUB: ModalMainMenu::updateSoundVolume()"); } void ModalMainMenu::updateSliderPos() { diff --git a/engines/fullpipe/modal.h b/engines/fullpipe/modal.h index 78ddf71f54..1a14972568 100644 --- a/engines/fullpipe/modal.h +++ b/engines/fullpipe/modal.h @@ -27,6 +27,7 @@ namespace Fullpipe { class PictureObject; class Picture; +class Sound; class BaseModalObject { public: @@ -185,6 +186,7 @@ private: void enableDebugMenu(char c); int checkHover(Common::Point &point); void updateVolume(); + void updateSoundVolume(Sound *snd); void updateSliderPos(); bool isOverArea(PictureObject *obj, Common::Point *point); }; |