Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1072)

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioNode.cpp

Issue 1361233004: Implement IIRFilter node for WebAudio. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test issue by printing fewer digits. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
index 4b3722731bd33d91e596f822c4906fd686475b49..099e457ff9007575264a2b32c875d2258c00c8cf 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
@@ -412,14 +412,15 @@ void AudioHandler::disableOutputsIfNecessary()
// But internally our outputs should be disabled from the inputs they're connected to.
// disable() can recursively deref connections (and call disable()) down a whole chain of connected nodes.
- // TODO(rtoy,hongchan): we special case the convolver, delay, and biquad since they have a
- // significant tail-time and shouldn't be disconnected simply because they no longer have
- // any input connections. This needs to be handled more generally where AudioNodes have a
- // tailTime attribute. Then the AudioNode only needs to remain "active" for tailTime seconds
- // after there are no longer any active connections.
+ // TODO(rtoy,hongchan): we need special cases the convolver, delay, biquad, and IIR since
+ // they have a significant tail-time and shouldn't be disconnected simply because they no
+ // longer have any input connections. This needs to be handled more generally where
+ // AudioNodes have a tailTime attribute. Then the AudioNode only needs to remain "active"
+ // for tailTime seconds after there are no longer any active connections.
if (nodeType() != NodeTypeConvolver
&& nodeType() != NodeTypeDelay
- && nodeType() != NodeTypeBiquadFilter) {
+ && nodeType() != NodeTypeBiquadFilter
+ && nodeType() != NodeTypeIIRFilter) {
m_isDisabled = true;
clearInternalStateWhenDisabled();
for (auto& output : m_outputs)
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioNode.h ('k') | third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698