Permalink
Browse files

STARTREK: Initialize some variables in sound

  • Loading branch information...
Strangerke committed Aug 30, 2018
1 parent 0a70f6f commit 9ac5f6c6da3821a28d74f2a8f81efd67265c2733
Showing with 4 additions and 0 deletions.
  1. +4 −0 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);

0 comments on commit 9ac5f6c

Please sign in to comment.