atsushieno / managed-midi

[Past project] Cross-platform MIDI processing library for mono and .NET (ALSA, CoreMIDI, Android, WinMM and UWP).
MIT License
194 stars 26 forks source link

System exculsive bug #43

Closed erano067 closed 5 years ago

erano067 commented 5 years ago

When sending some SysExc bytes it send it wrongly.

The command: device.Send(new byte[] { 0xF0, 0x7F, 0x7F, 0x00, 0x00, 0x08, 0xF7 }, 0, 7, 0);

End-device got message: [0x00, 0x7F, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00] - 8 bytes long instead of 7 and missing data..

atsushieno commented 5 years ago

I assume it is related to UWP - I have no Windows environment to verify now so I only made a quick fix for suspicious bits of code. Please reopen it if it didn't fix the issue. Thanks.