Skip to content

Commit 15634fa

Browse files
committed
bugfix: midi thru from udp to usb triggers an assert()
usbmidi supports 16 virtual cables (nCable in the code) any midi message received from udp sets this to 24 which is invalid. This replaces 24 with 0
1 parent d7a4dbf commit 15634fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/udpmididevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <circle/net/netsubsystem.h>
2929
#include <circle/net/in.h>
3030

31-
#define VIRTUALCABLE 24
31+
#define VIRTUALCABLE 0
3232

3333
LOGMODULE("udpmididevice");
3434

@@ -113,4 +113,4 @@ void CUDPMIDIDevice::Send(const u8 *pMessage, size_t nLength, unsigned nCable)
113113
LOGNOTE("Sent %zu bytes to UDP MIDI host (broadcast)", nLength);
114114
}
115115
}
116-
}
116+
}

0 commit comments

Comments
 (0)