Browse Source

Always set time frame information for JUCE hosted plugins

Signed-off-by: falkTX <falktx@falktx.com>
pull/1723/head
falkTX 2 years ago
parent
commit
4495215cb9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      source/backend/plugin/CarlaPluginJuce.cpp

+ 2
- 3
source/backend/plugin/CarlaPluginJuce.cpp View File

@@ -1323,6 +1323,8 @@ public:
const EngineTimeInfo& timeInfo(pData->engine->getTimeInfo());

fPosInfo.setIsPlaying(timeInfo.playing);
fPosInfo.setTimeInSamples(static_cast<int64_t>(timeInfo.frame));
fPosInfo.setTimeInSeconds(static_cast<double>(timeInfo.frame)/pData->engine->getSampleRate());

if (timeInfo.bbt.valid)
{
@@ -1339,9 +1341,6 @@ public:
fPosInfo.setTimeSignature(TimeSignature{static_cast<int>(timeInfo.bbt.beatsPerBar+0.5f),
static_cast<int>(timeInfo.bbt.beatType+0.5f)});

fPosInfo.setTimeInSamples(static_cast<int64_t>(timeInfo.frame));
fPosInfo.setTimeInSeconds(static_cast<double>(timeInfo.frame)/pData->engine->getSampleRate());

fPosInfo.setPpqPosition(ppqBar + ppqBeat + ppqTick);
fPosInfo.setPpqPositionOfLastBarStart(ppqBar);
}


Loading…
Cancel
Save