瀏覽代碼

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

master
kevin 3 年之前
父節點
當前提交
a4e3c2e550
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      src/dsp/cmDspBuiltIn.c

+ 4
- 1
src/dsp/cmDspBuiltIn.c 查看文件

@@ -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…
取消
儲存