Fix for bug [756555] ALL: With '-ewindows' notes don't stop at quit

and bug [755176] SIMON2: Hanging notes

More cleanup of the thread issues associated with iMuse and MidiParser
shutdown. Untested.

svn-id: r8546
This commit is contained in:
Jamieson Christian 2003-06-18 22:46:17 +00:00
parent 3567c13361
commit f83a32464c
2 changed files with 2 additions and 7 deletions

View File

@ -594,12 +594,7 @@ int IMuseInternal::get_master_volume() {
}
int IMuseInternal::terminate() {
// We are going to remove the MIDI drivers,
// so first pull any reference to them by
// the parts.
int i;
for (i = 0; i < ARRAYSIZE(_parts); ++i)
_parts[i]._mc = 0;
stop_all_sounds();
if (_midi_adlib) {
_midi_adlib->close();

View File

@ -234,7 +234,7 @@ public:
public:
MidiParser();
virtual ~MidiParser() { }
virtual ~MidiParser() { allNotesOff(); }
virtual bool loadMusic (byte *data, uint32 size) = 0;
virtual void unloadMusic();