Ver código fonte

cmDspBuiltIn.c : Changed _cmDspMidOutRecv() to not sleep between all-note-off transmissions

master
kevin 3 anos atrás
pai
commit
a4e3c2e550
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4
    1
      src/dsp/cmDspBuiltIn.c

+ 4
- 1
src/dsp/cmDspBuiltIn.c Ver arquivo

@@ -911,7 +911,10 @@ cmDspRC_t _cmDspMidiOutRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t
911 911
           {          
912 912
             cmMpDeviceSend(p->devIdx,p->portIdx,kCtlMdId+i,121,0); // reset all controllers
913 913
             cmMpDeviceSend(p->devIdx,p->portIdx,kCtlMdId+i,123,0); // turn all notes off
914
-            cmSleepMs(15);
914
+            //cmSleepMs(15);  this delay was causing audio to glitch badly
915
+            // if a delay is necessary make it shorter and only send it on channels where
916
+            // previous note-ons were issued.
917
+            
915 918
           }
916 919
       }
917 920
       break;

Carregando…
Cancelar
Salvar