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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.h

Issue 2102133002: Add constructors for WebAudio nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update files to the right GN files. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 24
25 #ifndef ChannelSplitterNode_h 25 #ifndef ChannelSplitterNode_h
26 #define ChannelSplitterNode_h 26 #define ChannelSplitterNode_h
27 27
28 #include "modules/webaudio/AudioNode.h" 28 #include "modules/webaudio/AudioNode.h"
29 #include "wtf/PassRefPtr.h" 29 #include "wtf/PassRefPtr.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class BaseAudioContext; 33 class BaseAudioContext;
34 class ChannelSplitterOptions;
34 35
35 class ChannelSplitterHandler final : public AudioHandler { 36 class ChannelSplitterHandler final : public AudioHandler {
36 public: 37 public:
37 static PassRefPtr<ChannelSplitterHandler> create(AudioNode&, float sampleRat e, unsigned numberOfOutputs); 38 static PassRefPtr<ChannelSplitterHandler> create(AudioNode&, float sampleRat e, unsigned numberOfOutputs);
38 39
39 // AudioHandler 40 // AudioHandler
40 void process(size_t framesToProcess) override; 41 void process(size_t framesToProcess) override;
41 42
42 private: 43 private:
43 ChannelSplitterHandler(AudioNode&, float sampleRate, unsigned numberOfOutput s); 44 ChannelSplitterHandler(AudioNode&, float sampleRate, unsigned numberOfOutput s);
44 }; 45 };
45 46
46 class ChannelSplitterNode final : public AudioNode { 47 class ChannelSplitterNode final : public AudioNode {
47 DEFINE_WRAPPERTYPEINFO(); 48 DEFINE_WRAPPERTYPEINFO();
48 public: 49 public:
49 static ChannelSplitterNode* create(BaseAudioContext&, ExceptionState&); 50 static ChannelSplitterNode* create(BaseAudioContext&, ExceptionState&);
50 static ChannelSplitterNode* create(BaseAudioContext&, unsigned numberOfOutpu ts, ExceptionState&); 51 static ChannelSplitterNode* create(BaseAudioContext&, unsigned numberOfOutpu ts, ExceptionState&);
52 static ChannelSplitterNode* create(BaseAudioContext*, const ChannelSplitterO ptions&, ExceptionState&);
51 53
52 private: 54 private:
53 ChannelSplitterNode(BaseAudioContext&, unsigned numberOfOutputs); 55 ChannelSplitterNode(BaseAudioContext&, unsigned numberOfOutputs);
54 }; 56 };
55 57
56 } // namespace blink 58 } // namespace blink
57 59
58 #endif // ChannelSplitterNode_h 60 #endif // ChannelSplitterNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698