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

Unified Diff: Source/modules/webaudio/AudioNodeOutput.h

Issue 886173004: Fix AudioNode.disconnect() to support selective disconnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Conflict solved. Created 5 years, 10 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
« no previous file with comments | « Source/modules/webaudio/AudioNode.idl ('k') | Source/modules/webaudio/AudioNodeOutput.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNodeOutput.h
diff --git a/Source/modules/webaudio/AudioNodeOutput.h b/Source/modules/webaudio/AudioNodeOutput.h
index 38336166777b46b032ab17f2523841b74339540c..0e0f320f6b60bd95ecf10966a2ef2fdf2d25ad51 100644
--- a/Source/modules/webaudio/AudioNodeOutput.h
+++ b/Source/modules/webaudio/AudioNodeOutput.h
@@ -66,12 +66,20 @@ public:
// Must be called with the context's graph lock.
void disconnectAll();
+ // Disconnect a specific input or AudioParam.
+ void disconnectInput(AudioNodeInput &);
+ void disconnectAudioParam(AudioParam &);
+
void setNumberOfChannels(unsigned);
unsigned numberOfChannels() const { return m_numberOfChannels; }
bool isChannelCountKnown() const { return numberOfChannels() > 0; }
bool isConnected() { return fanOutCount() > 0 || paramFanOutCount() > 0; }
+ // Probe if the output node is connected with a certain input or AudioParam
+ bool isConnectedToInput(AudioNodeInput &);
+ bool isConnectedToAudioParam(AudioParam &);
+
// Disable/Enable happens when there are still JavaScript references to a node, but it has otherwise "finished" its work.
// For example, when a note has finished playing. It is kept around, because it may be played again at a later time.
// They must be called with the context's graph lock.
« no previous file with comments | « Source/modules/webaudio/AudioNode.idl ('k') | Source/modules/webaudio/AudioNodeOutput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698