aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-04-19 14:06:34 +0300
committerEugene Sandulenko2014-04-19 14:06:34 +0300
commit559f51e29eba41b7a6ab63801bc2196ce9b6335a (patch)
tree5cabb97e156625725f530d58f27babf41f02ea1d /engines
parent3b1af18d92ecf7f6cfe5d0eb0aeae1221530942a (diff)
downloadscummvm-rg350-559f51e29eba41b7a6ab63801bc2196ce9b6335a.tar.gz
scummvm-rg350-559f51e29eba41b7a6ab63801bc2196ce9b6335a.tar.bz2
scummvm-rg350-559f51e29eba41b7a6ab63801bc2196ce9b6335a.zip
FULLPIPE: Implement ModalMainMenu::updateVolume()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/modal.cpp11
-rw-r--r--engines/fullpipe/modal.h2
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);
};