File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ impl AtomicF64 {
132
132
/// # Panics
133
133
///
134
134
/// This function will panic if:
135
- /// - the given sample rate is lower than 4000 or greater than 192000
135
+ /// - the given sample rate is lower than 2000 or greater than 384000
136
136
///
137
137
#[ track_caller]
138
138
#[ inline( always) ]
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pub(crate) fn assert_valid_number_of_channels(number_of_channels: usize) {
32
32
///
33
33
/// # Panics
34
34
///
35
- /// This function panics if given count is greater than 2
35
+ /// This function panics if given count is not equal to 1
36
36
///
37
37
#[ track_caller]
38
38
#[ inline( always) ]
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ impl PannerNode {
417
417
) ;
418
418
assert ! (
419
419
max_distance > 0. ,
420
- "RangeError - maxDistance must be positive"
420
+ "RangeError - maxDistance must be strictly positive"
421
421
) ;
422
422
assert ! (
423
423
rolloff_factor >= 0. ,
@@ -574,7 +574,10 @@ impl PannerNode {
574
574
///
575
575
/// Panics if the provided value is negative.
576
576
pub fn set_max_distance ( & mut self , value : f64 ) {
577
- assert ! ( value > 0. , "RangeError - maxDistance must be positive" ) ;
577
+ assert ! (
578
+ value > 0. ,
579
+ "RangeError - maxDistance must be strictly positive"
580
+ ) ;
578
581
self . max_distance = value;
579
582
self . registration
580
583
. post_message ( ControlMessage :: MaxDistance ( value) ) ;
You can’t perform that action at this time.
0 commit comments