aboutsummaryrefslogtreecommitdiff
path: root/sound/mpu401.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mpu401.cpp')
-rw-r--r--sound/mpu401.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/mpu401.cpp b/sound/mpu401.cpp
index 303c42b6e4..b3b09cde86 100644
--- a/sound/mpu401.cpp
+++ b/sound/mpu401.cpp
@@ -34,6 +34,10 @@ MidiDriver *MidiChannel_MPU401::device() {
return _owner;
}
+void MidiChannel_MPU401::send (uint32 b) {
+ _owner->send (b & 0xFFFFFFF0 | (_channel & 0xF));
+}
+
void MidiChannel_MPU401::noteOff (byte note) {
_owner->send(note << 8 | 0x80 | _channel);
}