diff options
| author | Jamieson Christian | 2003-05-18 23:55:53 +0000 |
|---|---|---|
| committer | Jamieson Christian | 2003-05-18 23:55:53 +0000 |
| commit | c81b58d38eb8ca38e8614152000bceb7b2c012ad (patch) | |
| tree | 9401a74b381ab63a31562e0b3e5ddb05c2da2500 /backends/midi/adlib.cpp | |
| parent | b43bca21cbea217d980887eabbfc73e92fce4c71 (diff) | |
| download | scummvm-rg350-c81b58d38eb8ca38e8614152000bceb7b2c012ad.tar.gz scummvm-rg350-c81b58d38eb8ca38e8614152000bceb7b2c012ad.tar.bz2 scummvm-rg350-c81b58d38eb8ca38e8614152000bceb7b2c012ad.zip | |
Implemented new Simon MIDI module, switching from MidiStreamer to MidiParser. Restructuring enables XMIDI support and vc_72 implementation. Various cleanup on MidiParser's and MidiDriver's.
svn-id: r7654
Diffstat (limited to 'backends/midi/adlib.cpp')
| -rw-r--r-- | backends/midi/adlib.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/midi/adlib.cpp b/backends/midi/adlib.cpp index 769ad3e0d2..909aa655a8 100644 --- a/backends/midi/adlib.cpp +++ b/backends/midi/adlib.cpp @@ -867,6 +867,9 @@ int MidiDriver_ADLIB::open() { } void MidiDriver_ADLIB::close() { + if (!_isOpen) + return; + uint i; for (i = 0; i < ARRAYSIZE(_voices); ++i) { if (_voices [i]._part) |
