aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek
diff options
context:
space:
mode:
Diffstat (limited to 'engines/startrek')
-rw-r--r--engines/startrek/sound.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/startrek/sound.cpp b/engines/startrek/sound.cpp
index 46967593ef..f7f93382e0 100644
--- a/engines/startrek/sound.cpp
+++ b/engines/startrek/sound.cpp
@@ -35,6 +35,10 @@ namespace StarTrek {
// Main Sound Functions
Sound::Sound(StarTrekEngine *vm) : _vm(vm) {
+ _midiDevice = MT_INVALID;
+ _midiDriver = nullptr;
+ _loopingMidiTrack = false;
+
if (_vm->getPlatform() == Common::kPlatformDOS || _vm->getPlatform() == Common::kPlatformMacintosh) {
_midiDevice = MidiDriver::detectDevice(MDT_PCSPK | MDT_ADLIB | MDT_MIDI | MDT_PREFER_MT32);
_midiDriver = MidiDriver::createMidi(_midiDevice);