64 |
|
|
65 |
EngineChannel::~EngineChannel() { |
EngineChannel::~EngineChannel() { |
66 |
DisconnectAudioOutputDevice(); |
DisconnectAudioOutputDevice(); |
67 |
|
|
68 |
|
// In case the channel was removed before the instrument was |
69 |
|
// fully loaded, try to give back instrument again (see bug #113) |
70 |
|
instrument_change_command_t& cmd = ChangeInstrument(NULL); |
71 |
|
if (cmd.pInstrument) { |
72 |
|
Engine::instruments.HandBack(cmd.pInstrument, this); |
73 |
|
} |
74 |
|
/////// |
75 |
|
|
76 |
if (pEventQueue) delete pEventQueue; |
if (pEventQueue) delete pEventQueue; |
77 |
if (pActiveKeys) delete pActiveKeys; |
if (pActiveKeys) delete pActiveKeys; |
78 |
if (pMIDIKeyInfo) delete[] pMIDIKeyInfo; |
if (pMIDIKeyInfo) delete[] pMIDIKeyInfo; |