diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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 |