1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioPlayHead: Use more descriptive FrameRate type

This commit is contained in:
reuk 2021-11-02 18:29:46 +00:00
parent 221a137526
commit 718307b516
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
4 changed files with 138 additions and 41 deletions

View file

@ -4,6 +4,26 @@ JUCE breaking changes
develop
=======
Change
------
AudioFrameRate::frameRate is now a class type instead of an enum.
Possible Issues
---------------
Code that read the old enum value will not compile.
Workaround
----------
Call frameRate.getType() to fetch the old enum type. Alternatively, use the new
getBaseRate(), isDrop(), isPullDown(), and getEffectiveRate() functions. The
new functions provide a more accurate description of the host's frame rate.
Rationale
---------
The old enum-based interface was not flexible enough to describe all the frame
rates that might be reported by a plugin host.
Change
------
FlexItem::alignSelf now defaults to "autoAlign" rather than "stretch".