We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 165f770 commit f596d6cCopy full SHA for f596d6c
src/param.rs
@@ -1607,6 +1607,18 @@ pub(crate) fn audio_param_pair(
1607
..
1608
} = descriptor;
1609
1610
+ assert_is_finite(default_value);
1611
+ assert_is_finite(min_value);
1612
+ assert_is_finite(max_value);
1613
+ assert!(
1614
+ min_value <= default_value,
1615
+ "InvalidStateError - AudioParam minValue should be <= defaultValue"
1616
+ );
1617
1618
+ default_value <= max_value,
1619
+ "InvalidStateError - AudioParam defaultValue should be <= maxValue"
1620
1621
+
1622
let current_value = Arc::new(AtomicF32::new(default_value));
1623
1624
let param = AudioParam {
0 commit comments