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

AudioProcessor: Use std::optional in TrackProperties

This commit is contained in:
Oliver James 2024-11-15 20:00:41 +00:00
parent 59ca34daaf
commit 9b959bd223
9 changed files with 42 additions and 17 deletions

View file

@ -24,6 +24,25 @@ The previous behavior, where hasStreamFinished never returned true, was
incorrect. This update ensures the method works as intended.
## Change
AudioProcessor::TrackProperties now uses std::optional.
**Possible Issues**
Code that accessed TrackProperties properties directly will no longer compile.
**Workaround**
Use std::optional::has_value() to check if a property is set. Or Access the
property value safely using std::optional::value() or operator*.
**Rationale**
Previously, it was not possible to distinguish whether a TrackProperty was
explicitly set or if the default value was being used.
## Change
Support for Arm32 in Projucer has been removed for Windows targets.