diff options
Diffstat (limited to 'Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.h')
-rw-r--r-- | Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.h b/Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.h index 2f4258ea3..b86f1a387 100644 --- a/Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.h +++ b/Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.h @@ -22,8 +22,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef AudioBasicInspectorNode_h -#define AudioBasicInspectorNode_h +#pragma once #include "AudioNode.h" @@ -34,19 +33,17 @@ namespace WebCore { // AudioContext before the end of each render quantum so that it can inspect the audio stream. class AudioBasicInspectorNode : public AudioNode { public: - AudioBasicInspectorNode(AudioContext*, float sampleRate, unsigned outputChannelCount); - - // AudioNode - virtual void pullInputs(size_t framesToProcess) override; - virtual void connect(AudioNode*, unsigned outputIndex, unsigned inputIndex, ExceptionCode&) override; - virtual void disconnect(unsigned outputIndex, ExceptionCode&) override; - virtual void checkNumberOfChannelsForInput(AudioNodeInput*) override; + AudioBasicInspectorNode(AudioContext&, float sampleRate, unsigned outputChannelCount); private: + void pullInputs(size_t framesToProcess) override; + ExceptionOr<void> connect(AudioNode&, unsigned outputIndex, unsigned inputIndex) override; + ExceptionOr<void> disconnect(unsigned outputIndex) override; + void checkNumberOfChannelsForInput(AudioNodeInput*) override; + void updatePullStatus(); - bool m_needAutomaticPull; // When setting to true, AudioBasicInspectorNode will be pulled automaticlly by AudioContext before the end of each render quantum. + + bool m_needAutomaticPull { false }; // When setting to true, AudioBasicInspectorNode will be pulled automatically by AudioContext before the end of each render quantum. }; } // namespace WebCore - -#endif // AudioBasicInspectorNode_h |