Open jrlanglois opened 2 years ago
The new API is intended to support all of the use-cases supported by the old API. The PositionInfo
instance returned from getPosition
can contain both a time-in-seconds and a time-in-samples. Just call PositionInfo::setTimeInSeconds
and PositionInfo::setTimeInSamples
on the instance that you return.
Thanks for the heads up! I think it's best to freeze the current state in a juce6 branch and fix it in develop
Specifically,
juce::AudioPlayHead
has had its positional information method API changed entirely, thus breakingAudioProcessorAdapter::PlayHead
.getCurrentPosition
should be changed togetPosition
, which means you'll have to pick either seconds or samples as basis for time.