aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hugo')
-rw-r--r--engines/hugo/sound.cpp4
-rw-r--r--engines/hugo/sound.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/hugo/sound.cpp b/engines/hugo/sound.cpp
index 5ef843977f..c4feb5fb1c 100644
--- a/engines/hugo/sound.cpp
+++ b/engines/hugo/sound.cpp
@@ -192,6 +192,10 @@ int MidiPlayer::open() {
return 0;
}
+bool MidiPlayer::isOpen() const {
+ return _driver && _driver->isOpen();
+}
+
void MidiPlayer::close() {
stop();
_mutex.lock();
diff --git a/engines/hugo/sound.h b/engines/hugo/sound.h
index 49e78a4aeb..e5e9d94ebb 100644
--- a/engines/hugo/sound.h
+++ b/engines/hugo/sound.h
@@ -60,6 +60,7 @@ public:
// MidiDriver interface
int open();
+ bool isOpen() const;
MidiChannel *allocateChannel();
MidiChannel *getPercussionChannel();