Browse Source

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

master
kevin 3 years ago
parent
commit
a4e3c2e550
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/dsp/cmDspBuiltIn.c

+ 4
- 1
src/dsp/cmDspBuiltIn.c View File

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

Loading…
Cancel
Save