fix MIDI clock/time using too much CPU
This commit is contained in:
parent
5d015ae0ed
commit
59e93892dd
|
@ -1980,14 +1980,10 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
|
||||||
} else {
|
} else {
|
||||||
// 3. run MIDI clock
|
// 3. run MIDI clock
|
||||||
int midiTotal=MIN(cycles,runLeftG);
|
int midiTotal=MIN(cycles,runLeftG);
|
||||||
for (int i=0; i<midiTotal; i++) {
|
runMidiClock(midiTotal);
|
||||||
runMidiClock();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 4. run MIDI timecode
|
// 4. run MIDI timecode
|
||||||
for (int i=0; i<midiTotal; i++) {
|
runMidiTime(midiTotal);
|
||||||
runMidiTime();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 5. tick the clock and fill buffers as needed
|
// 5. tick the clock and fill buffers as needed
|
||||||
if (cycles<runLeftG) {
|
if (cycles<runLeftG) {
|
||||||
|
|
Loading…
Reference in New Issue