Browse Source

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

master
kevin 7 years ago
parent
commit
468b5d54bc
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      dsp/cmDspSys.c

+ 4
- 0
dsp/cmDspSys.c View File

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

Loading…
Cancel
Save