Ver código fonte

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

master
kevin 6 anos atrás
pai
commit
468b5d54bc
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      dsp/cmDspSys.c

+ 4
- 0
dsp/cmDspSys.c Ver arquivo

@@ -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
 

Carregando…
Cancelar
Salvar