Fixed bug in cmDspSys.c cmDspSysRcvMsg() where the value.flags field in the MIDI packet broadcast message was not initialized.

This commit is contained in:
kevin 2017-09-16 17:58:48 -04:00
parent dbd448177c
commit 468b5d54bc

View File

@ -732,6 +732,10 @@ cmDspRC_t cmDspSysRcvMsg( cmDspSysH_t h, cmAudioSysCtx_t* asCtx, const void*
pkt.msgArray = (cmMidiMsg*)(hdr + 5);
unsigned midiSymId = cmDspSysRegisterStaticSymbol(h,"_midi");
// HACK:
v.flags = kMtxDsvFl; // The value is not really a matrix but only _cmDspMidiInRecvFunc()
// ever needs to decode value and it does not look at the value type flags.
v.u.m.u.vp = &pkt;
cmDspSysBroadcastValue(h, midiSymId, &v);