cmMidiFile.c Fixed absolute time calc. bug in cmMidiFileTickToSamples().
This commit is contained in:
parent
698f987558
commit
befd3deeee
@ -821,9 +821,10 @@ void cmMidiFileTickToSamples( cmMidiFileH_t h, double srate, bool absFl )
|
||||
cmMidiTrackMsg_t* mp = p->msgV[mi];
|
||||
unsigned delta = floor((mp->dtick*srate)/1000000.0);
|
||||
|
||||
absSmp += delta;
|
||||
|
||||
mp->dtick = absFl ? absSmp : delta;
|
||||
|
||||
absSmp += delta;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user