Skip to content

Commit 0d8a837

Browse files
authored
Merge pull request #487 from b-ma/fix/biquad-gain-description
Fix - BiquadFilterNode gain max value
2 parents d92903a + dd81ea5 commit 0d8a837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/biquad_filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ impl BiquadFilterNode {
387387
let gain_options = AudioParamDescriptor {
388388
name: String::new(),
389389
min_value: f32::MIN,
390-
max_value: f32::MAX,
390+
max_value: 40. * f32::MAX.log10(),
391391
default_value: 0.,
392392
automation_rate: crate::param::AutomationRate::A,
393393
};

0 commit comments

Comments
 (0)