Patch from Pete Goodeve (ticket #7581): MIDI Pitchbend scaled wrongly.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41777 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2011-05-27 18:29:07 +00:00
parent abed26b20a
commit d61187a1f3
1 changed files with 2 additions and 1 deletions

View File

@ -356,7 +356,8 @@ BSoftSynth::PitchBend(uchar channel, uchar lsb, uchar msb, uint32 time)
if (InitCheck()) {
snooze_until(MAKE_BIGTIME(time), B_SYSTEM_TIMEBASE);
// fluid_synth only accepts an int
fluid_synth_pitch_bend(fSynth, channel - 1, ((uint32)(msb & 0x7f) << 8) | (lsb & 0x7f));
fluid_synth_pitch_bend(fSynth, channel - 1,
((uint32)(msb & 0x7f) << 7) | (lsb & 0x7f));
}
}