Fix bug in multi-packet USB MIDI messages

When a bulk transfer contained more than one packet, the wrong one was
being extracted.
master
Raph Levien 11 years ago
parent 8a63b11a04
commit a30a6b0e75
  1. 2
      android/src/com/levien/synthesizer/android/usb/UsbMidiDevice.java

@ -115,7 +115,7 @@ public class UsbMidiDevice {
}
if (payloadBytes > 0) {
//Log.d("synth", "sending midi");
MessageFromBytes.send(mReceiver, buf, 1, payloadBytes);
MessageFromBytes.send(mReceiver, buf, i + 1, payloadBytes);
}
}
}

Loading…
Cancel
Save