summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/webaudio/ChannelSplitterNode.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/webaudio/ChannelSplitterNode.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/Modules/webaudio/ChannelSplitterNode.h')
-rw-r--r--Source/WebCore/Modules/webaudio/ChannelSplitterNode.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/Source/WebCore/Modules/webaudio/ChannelSplitterNode.h b/Source/WebCore/Modules/webaudio/ChannelSplitterNode.h
index 9d07279e2..acddc6c70 100644
--- a/Source/WebCore/Modules/webaudio/ChannelSplitterNode.h
+++ b/Source/WebCore/Modules/webaudio/ChannelSplitterNode.h
@@ -22,11 +22,9 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ChannelSplitterNode_h
-#define ChannelSplitterNode_h
+#pragma once
#include "AudioNode.h"
-#include <wtf/PassRefPtr.h>
namespace WebCore {
@@ -34,19 +32,17 @@ class AudioContext;
class ChannelSplitterNode : public AudioNode {
public:
- static PassRefPtr<ChannelSplitterNode> create(AudioContext*, float sampleRate, unsigned numberOfOutputs);
+ static RefPtr<ChannelSplitterNode> create(AudioContext&, float sampleRate, unsigned numberOfOutputs);
// AudioNode
- virtual void process(size_t framesToProcess) override;
- virtual void reset() override;
+ void process(size_t framesToProcess) override;
+ void reset() override;
private:
- virtual double tailTime() const override { return 0; }
- virtual double latencyTime() const override { return 0; }
+ double tailTime() const override { return 0; }
+ double latencyTime() const override { return 0; }
- ChannelSplitterNode(AudioContext*, float sampleRate, unsigned numberOfOutputs);
+ ChannelSplitterNode(AudioContext&, float sampleRate, unsigned numberOfOutputs);
};
} // namespace WebCore
-
-#endif // ChannelSplitterNode_h