WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
82200
Reset paramters when BiquadFilterNode.type get new value.
https://bugs.webkit.org/show_bug.cgi?id=82200
Summary
Reset paramters when BiquadFilterNode.type get new value.
Gao Chun
Reported
2012-03-26 07:01:58 PDT
When BiquadFilterNode.type changed, the Q and gain paramters should be set with new names and ranges.
Attachments
Patch
(4.54 KB, patch)
2012-03-26 09:45 PDT
,
Gao Chun
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Gao Chun
Comment 1
2012-03-26 09:45:06 PDT
Created
attachment 133835
[details]
Patch
Chris Rogers
Comment 2
2012-03-26 22:09:12 PDT
Comment on
attachment 133835
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133835&action=review
Hi Chun, thanks for the patch. I don't think we should change the AudioParams in this way, but a good change would be to remove the deprecated filter nodes.
> Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:-48 > - m_parameter3 = AudioParam::create("gain", 0.0, -40, 40);
The attributes for BiquadFilterNode are defined in the spec as "frequency", "Q", "gain", so I think we shouldn't remove this code here, even though for some types "Q" is unused.
> Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:-76 > - }
I think it may be a good time to think about removing these old/deprecated AudioNodes (LowPass2FilterNode and HighPass2FilterNode). There have been warning messages for many months. But that should probably be in a different patch called "Remove deprecated LowPass2FilterNode and HighPass2FilterNode"
> Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:157 > +}
I don't think we should re-create these AudioParams -- instead just create in the normal constructor and leave named the same always
Gao Chun
Comment 3
2012-03-26 22:53:23 PDT
(In reply to
comment #2
)
> (From update of
attachment 133835
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=133835&action=review
> > Hi Chun, thanks for the patch. I don't think we should change the AudioParams in this way, but a good change would be to remove the deprecated filter nodes. > > > Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:-48 > > - m_parameter3 = AudioParam::create("gain", 0.0, -40, 40); > > The attributes for BiquadFilterNode are defined in the spec as "frequency", "Q", "gain", so I think we shouldn't remove this code here, even though for some types "Q" is unused. > > > Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:-76 > > - } > > I think it may be a good time to think about removing these old/deprecated AudioNodes (LowPass2FilterNode and HighPass2FilterNode). There have been warning messages for many months. But that should probably be in a different patch called "Remove deprecated LowPass2FilterNode and HighPass2FilterNode" > > > Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:157 > > +} > > I don't think we should re-create these AudioParams -- instead just create in the normal constructor and leave named the same always
(In reply to
comment #2
)
> (From update of
attachment 133835
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=133835&action=review
> > Hi Chun, thanks for the patch. I don't think we should change the AudioParams in this way, but a good change would be to remove the deprecated filter nodes. > > > Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:-48 > > - m_parameter3 = AudioParam::create("gain", 0.0, -40, 40); > > The attributes for BiquadFilterNode are defined in the spec as "frequency", "Q", "gain", so I think we shouldn't remove this code here, even though for some types "Q" is unused. > > > Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:-76 > > - } > > I think it may be a good time to think about removing these old/deprecated AudioNodes (LowPass2FilterNode and HighPass2FilterNode). There have been warning messages for many months. But that should probably be in a different patch called "Remove deprecated LowPass2FilterNode and HighPass2FilterNode" > > > Source/WebCore/Modules/webaudio/BiquadProcessor.cpp:157 > > +} > > I don't think we should re-create these AudioParams -- instead just create in the normal constructor and leave named the same always
Hi Chris, thanks for your suggestion, I'll mark this bug as invalid and fire a new one to remove LowPass2FilterNode and HighPass2FilterNode.
Eric Seidel (no email)
Comment 4
2012-03-27 13:19:05 PDT
Comment on
attachment 133835
[details]
Patch Cleared review? from
attachment 133835
[details]
so that this bug does not appear in
http://webkit.org/pending-review
. If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug