mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
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:
parent
3567c13361
commit
f83a32464c
@ -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();
|
||||
|
@ -234,7 +234,7 @@ public:
|
||||
|
||||
public:
|
||||
MidiParser();
|
||||
virtual ~MidiParser() { }
|
||||
virtual ~MidiParser() { allNotesOff(); }
|
||||
|
||||
virtual bool loadMusic (byte *data, uint32 size) = 0;
|
||||
virtual void unloadMusic();
|
||||
|
Loading…
Reference in New Issue
Block a user