diff options
Diffstat (limited to 'sky/music')
-rw-r--r-- | sky/music/gmmusic.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sky/music/gmmusic.cpp b/sky/music/gmmusic.cpp index b4fdeeb510..58f65e73e6 100644 --- a/sky/music/gmmusic.cpp +++ b/sky/music/gmmusic.cpp @@ -44,6 +44,9 @@ SkyGmMusic::~SkyGmMusic(void) { _midiDrv->setTimerCallback(NULL, NULL); if (_currentMusic) stopMusic(); + // Send All Notes Off (for external synths) + for (int i = 0; i < 16; ++i) + _midiDrv->send ((123 << 8) | 0xB0 | i); _midiDrv->close(); delete _midiDrv; } |