Browse Source

Fix AU crash if host does not provide time signature (x64 auval)

tags/22.09
falkTX 2 years ago
parent
commit
67526eb978
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      jucewrapper/CardinalWrapper.cpp

+ 6
- 0
jucewrapper/CardinalWrapper.cpp View File

@@ -368,6 +368,12 @@ protected:
else
timePosition.frame = 0;

// use 4/4 as fallback time signature if not provided by the host
if (posInfo.timeSigNumerator == 0)
posInfo.timeSigNumerator = 4;
if (posInfo.timeSigDenominator == 0)
posInfo.timeSigDenominator = 4;

timePosition.bbt.beatsPerMinute = posInfo.bpm;

const double ppqPos = std::abs(posInfo.ppqPosition);


Loading…
Cancel
Save