ffAudio / foleys_video_engine

A video engine to load, play, assemble and write video - to be used with JUCE
Other
50 stars 19 forks source link

Foleys Video Engine does not support JUCE 7 #14

Open jrlanglois opened 2 years ago

jrlanglois commented 2 years ago

Specifically, juce::AudioPlayHead has had its positional information method API changed entirely, thus breaking AudioProcessorAdapter::PlayHead.

getCurrentPosition should be changed to getPosition, which means you'll have to pick either seconds or samples as basis for time.

reuk commented 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.

ffAudio commented 2 years ago

Thanks for the heads up! I think it's best to freeze the current state in a juce6 branch and fix it in develop