Make internal plugin context use const; Fix host time
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
ec2f455826
commit
1a2c64309b
8 changed files with 63 additions and 39 deletions
|
|
@ -930,12 +930,13 @@ protected:
|
|||
{
|
||||
const TimePosition& timePos(getTimePosition());
|
||||
|
||||
bool reset = false;
|
||||
MidiEvent singleTimeMidiEvent = { 0, 1, { 0, 0, 0, 0 }, nullptr };
|
||||
|
||||
if (timePos.playing)
|
||||
{
|
||||
if (timePos.frame == 0 || fPreviousFrame + frames != timePos.frame)
|
||||
context->reset = true;
|
||||
reset = true;
|
||||
|
||||
if (! context->playing)
|
||||
{
|
||||
|
|
@ -977,6 +978,7 @@ protected:
|
|||
context->tickClock = std::fmod(timePos.bbt.tick, context->ticksPerClock);
|
||||
}
|
||||
|
||||
context->reset = reset;
|
||||
fPreviousFrame = timePos.frame;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue