aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/sound.h
diff options
context:
space:
mode:
authorMax Horn2011-12-12 16:22:55 +0100
committerMax Horn2011-12-12 16:27:41 +0100
commitf485450758ffa37c789beb6bd038782dec8d97ad (patch)
tree4e165f294e5892f87c71566a9b18367252957c95 /engines/hugo/sound.h
parent30909b1ae455a7cb615720d5a65616925c3172a3 (diff)
downloadscummvm-rg350-f485450758ffa37c789beb6bd038782dec8d97ad.tar.gz
scummvm-rg350-f485450758ffa37c789beb6bd038782dec8d97ad.tar.bz2
scummvm-rg350-f485450758ffa37c789beb6bd038782dec8d97ad.zip
HUGO: Fix warning about hidden pause() method from parent class
Diffstat (limited to 'engines/hugo/sound.h')
-rw-r--r--engines/hugo/sound.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/hugo/sound.h b/engines/hugo/sound.h
index 1e504fbdea..cb6d4e3168 100644
--- a/engines/hugo/sound.h
+++ b/engines/hugo/sound.h
@@ -43,6 +43,12 @@ public:
void pause(bool p);
void play(uint8 *stream, uint16 size);
+ // The following line prevents compiler warnings about hiding the pause()
+ // method from the parent class.
+ // FIXME: Maybe the pause(bool p) method should be removed and the
+ // pause/resume methods of the parent class be used instead?
+ virtual void pause() { Audio::MidiPlayer::pause(); }
+
uint32 getBaseTempo();
// Overload Audio::MidiPlayer method