aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--simon/midi.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/simon/midi.cpp b/simon/midi.cpp
index dc8644e0e7..35086cc984 100644
--- a/simon/midi.cpp
+++ b/simon/midi.cpp
@@ -124,8 +124,11 @@ void MidiPlayer::send(uint32 b) {
if (!_current->channel[channel])
_current->channel[channel] = (channel == 9) ? _driver->getPercussionChannel() : _driver->allocateChannel();
- if (_current->channel[channel])
+ if (_current->channel[channel]) {
+ if (channel == 9)
+ _current->channel[9]->volume (_current->volume[9] * _masterVolume / 255);
_current->channel[channel]->send(b);
+ }
}
void MidiPlayer::metaEvent (byte type, byte *data, uint16 length) {