mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 01:15:58 +00:00
Merge pull request #324 from eriktorbjorn/kyra-midifade
KYRA: Fix MIDI fade-out behaviour
This commit is contained in:
commit
9ffec86b5d
@ -323,7 +323,7 @@ void MidiOutput::setSourceVolume(int source, int volume, bool apply) {
|
||||
for (int i = 0; i < 16; ++i) {
|
||||
// Controller 0 in the state table should always be '7' aka
|
||||
// volume control
|
||||
byte realVol = (_channels[i].controllers[0].value * volume) >> 8;
|
||||
byte realVol = (_sources[source].controllers[i][0].value * volume) >> 8;
|
||||
sendIntern(0xB0, i, 0x07, realVol);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user