FULLPIPE: Implement ModalMainMenu::updateVolume()

This commit is contained in:
Eugene Sandulenko 2014-04-19 14:06:34 +03:00
parent 3b1af18d92
commit 559f51e29e
2 changed files with 12 additions and 1 deletions

View File

@ -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() {

View File

@ -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);
};