mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST sample pos accuracy fix.
This commit is contained in:
parent
f0ddb858fc
commit
5f8069719e
2 changed files with 2 additions and 2 deletions
|
|
@ -698,7 +698,7 @@ public:
|
|||
info.timeSigDenominator = 4;
|
||||
}
|
||||
|
||||
info.timeInSamples = (int64) ti->samplePos;
|
||||
info.timeInSamples = (int64) (ti->samplePos + 0.5);
|
||||
info.timeInSeconds = ti->samplePos / ti->sampleRate;
|
||||
info.ppqPosition = (ti->flags & kVstPpqPosValid) != 0 ? ti->ppqPos : 0.0;
|
||||
info.ppqPositionOfLastBarStart = (ti->flags & kVstBarsValid) != 0 ? ti->barStartPos : 0.0;
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ bool ComponentPeer::handleKeyPress (const int keyCode, const juce_wchar textChar
|
|||
{
|
||||
currentlyFocused->moveKeyboardFocusToSibling (isTab);
|
||||
keyWasUsed = (currentlyFocused != Component::getCurrentlyFocusedComponent());
|
||||
|
||||
|
||||
if (keyWasUsed || deletionChecker == nullptr)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue