Browse Source

Small fix for transport changed check, in case BBT is not available

tags/v1.9.11
falkTX 6 years ago
parent
commit
de030b6b81
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      source/backend/engine/CarlaEngineData.cpp

+ 8
- 6
source/backend/engine/CarlaEngineData.cpp View File

@@ -360,12 +360,14 @@ bool EngineTimeInfo::compareIgnoringRollingFrames(const EngineTimeInfo& timeInfo
{
if (timeInfo.playing != playing || timeInfo.bbt.valid != bbt.valid)
return false;
if (! bbt.valid)
return true;
if (carla_isNotEqual(timeInfo.bbt.beatsPerBar, bbt.beatsPerBar))
return false;
if (carla_isNotEqual(timeInfo.bbt.beatsPerMinute, bbt.beatsPerMinute))
return false;

if (bbt.valid)
{
if (carla_isNotEqual(timeInfo.bbt.beatsPerBar, bbt.beatsPerBar))
return false;
if (carla_isNotEqual(timeInfo.bbt.beatsPerMinute, bbt.beatsPerMinute))
return false;
}

// frame matches, nothing else to compare
if (timeInfo.frame == frame)


Loading…
Cancel
Save