Make internal plugin context use const; Fix host time

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-01-14 15:45:36 +00:00
parent ec2f455826
commit 1a2c64309b
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
8 changed files with 63 additions and 39 deletions

View file

@ -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;
}