Store defaults on Param objects

And add methods for querying them.
This commit is contained in:
Robbert van der Helm
2022-03-21 12:49:59 +01:00
parent d5d54f0c06
commit a844051054
7 changed files with 64 additions and 3 deletions

View File

@@ -58,6 +58,7 @@ impl Default for GainParams {
// ...either manually specify all fields:
gain: FloatParam {
value: 0.0,
default: 0.0,
smoothed: Smoother::new(SmoothingStyle::Linear(50.0)),
value_changed: None,
range: FloatRange::Linear {