Преглед на файлове

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

master
kevin преди 7 години
родител
ревизия
468b5d54bc
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4
    0
      dsp/cmDspSys.c

+ 4
- 0
dsp/cmDspSys.c Целия файл

@@ -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…
Отказ
Запис