Преглед на файлове

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…
Отказ
Запис