Explorar el Código

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

master
kevin hace 7 años
padre
commit
468b5d54bc
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      dsp/cmDspSys.c

+ 4
- 0
dsp/cmDspSys.c Ver fichero

@@ -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…
Cancelar
Guardar