Fix AU crash if host does not provide time signature (x64 auval)
This commit is contained in:
parent
25b70b9931
commit
67526eb978
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue