aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJamieson Christian2003-08-08 07:23:11 +0000
committerJamieson Christian2003-08-08 07:23:11 +0000
commit4353f4531c166e8ea1e4f87b4261606ada9eca54 (patch)
tree5d05ca4e5db387a33e06ccfbe689ac2133a2ffc6 /sound
parent73eda504b99f1036ef5f36b832ca038a23e7aa4c (diff)
downloadscummvm-rg350-4353f4531c166e8ea1e4f87b4261606ada9eca54.tar.gz
scummvm-rg350-4353f4531c166e8ea1e4f87b4261606ada9eca54.tar.bz2
scummvm-rg350-4353f4531c166e8ea1e4f87b4261606ada9eca54.zip
Send All Notes Off to every channel on close
svn-id: r9593
Diffstat (limited to 'sound')
-rw-r--r--sound/mpu401.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/mpu401.cpp b/sound/mpu401.cpp
index 455c237299..303c42b6e4 100644
--- a/sound/mpu401.cpp
+++ b/sound/mpu401.cpp
@@ -97,6 +97,9 @@ void MidiDriver_MPU401::close() {
g_system->unlock_mutex (_mutex);
g_system->delete_mutex (_mutex);
}
+ int i;
+ for (i = 0; i < 16; ++i)
+ send (0x7B << 8 | 0xB0 | i);
}
MidiChannel *MidiDriver_MPU401::allocateChannel() {