From 468b5d54bc67552e46fcb5847fe99a73d7c66027 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 16 Sep 2017 17:58:48 -0400 Subject: [PATCH] Fixed bug in cmDspSys.c cmDspSysRcvMsg() where the value.flags field in the MIDI packet broadcast message was not initialized. --- dsp/cmDspSys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dsp/cmDspSys.c b/dsp/cmDspSys.c index 98bf9ee..fd68959 100644 --- a/dsp/cmDspSys.c +++ b/dsp/cmDspSys.c @@ -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);