aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek
diff options
context:
space:
mode:
authorStrangerke2018-08-30 23:56:29 +0200
committerStrangerke2018-08-31 00:24:00 +0200
commit9ac5f6c6da3821a28d74f2a8f81efd67265c2733 (patch)
tree6db455e717d18ef4e098a1a3ce8fd1f1820064c0 /engines/startrek
parent0a70f6f18b296da01fc0a1c739fb472283d3b633 (diff)
downloadscummvm-rg350-9ac5f6c6da3821a28d74f2a8f81efd67265c2733.tar.gz
scummvm-rg350-9ac5f6c6da3821a28d74f2a8f81efd67265c2733.tar.bz2
scummvm-rg350-9ac5f6c6da3821a28d74f2a8f81efd67265c2733.zip
STARTREK: Initialize some variables in sound
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);