rename totalTicksOff to totalTimeDrift
This commit is contained in:
parent
5ff81aef33
commit
3516245d2e
3 changed files with 7 additions and 7 deletions
|
|
@ -1707,7 +1707,7 @@ void DivEngine::playSub(bool preserveDrift, int goalRow) {
|
|||
subticks=0;
|
||||
tempoAccum=0;
|
||||
totalTime=TimeMicros(0,0);
|
||||
totalTicksOff=0;
|
||||
totalTimeDrift=0;
|
||||
totalTicksR=0;
|
||||
curMidiClock=0;
|
||||
curMidiTime=0;
|
||||
|
|
@ -3980,7 +3980,7 @@ void DivEngine::quitDispatch() {
|
|||
changeOrd=-1;
|
||||
changePos=0;
|
||||
totalTime=TimeMicros(0,0);
|
||||
totalTicksOff=0;
|
||||
totalTimeDrift=0;
|
||||
totalTicksR=0;
|
||||
curMidiClock=0;
|
||||
curMidiTime=0;
|
||||
|
|
|
|||
|
|
@ -512,7 +512,7 @@ class DivEngine {
|
|||
int stepPlay;
|
||||
int changeOrd, changePos, totalTicksR, curMidiClock, curMidiTime, totalCmds, lastCmds, cmdsPerSecond;
|
||||
TimeMicros totalTime;
|
||||
double totalTicksOff;
|
||||
double totalTimeDrift;
|
||||
int curMidiTimePiece, curMidiTimeCode;
|
||||
unsigned char extValue, pendingMetroTick;
|
||||
DivGroovePattern speeds;
|
||||
|
|
@ -1530,7 +1530,7 @@ class DivEngine {
|
|||
totalCmds(0),
|
||||
lastCmds(0),
|
||||
cmdsPerSecond(0),
|
||||
totalTicksOff(0.0),
|
||||
totalTimeDrift(0.0),
|
||||
curMidiTimePiece(0),
|
||||
curMidiTimeCode(0),
|
||||
extValue(0),
|
||||
|
|
|
|||
|
|
@ -2583,9 +2583,9 @@ bool DivEngine::nextTick(bool noAccum, bool inhibitLowLat) {
|
|||
double dt=divider*tickMult;
|
||||
totalTicksR++;
|
||||
totalTime.micros+=1000000/dt;
|
||||
totalTicksOff+=fmod(1000000.0,dt);
|
||||
while (totalTicksOff>=dt) {
|
||||
totalTicksOff-=dt;
|
||||
totalTimeDrift+=fmod(1000000.0,dt);
|
||||
while (totalTimeDrift>=dt) {
|
||||
totalTimeDrift-=dt;
|
||||
totalTime.micros++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue