summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/webaudio/ChannelSplitterNode.h
diff options
context:
space:
mode:
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