OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class AudioContext; | 33 class AudioContext; |
34 | 34 |
35 class ChannelSplitterHandler final : public AudioHandler { | 35 class ChannelSplitterHandler final : public AudioHandler { |
36 public: | 36 public: |
37 static PassRefPtr<ChannelSplitterHandler> create(AudioNode&, float sampleRat
e, unsigned numberOfOutputs); | 37 static PassRefPtr<ChannelSplitterHandler> create(AudioNode&, float sampleRat
e, unsigned numberOfOutputs); |
38 | 38 |
39 // AudioHandler | 39 // AudioHandler |
40 virtual void process(size_t framesToProcess) override; | 40 void process(size_t framesToProcess) override; |
41 | 41 |
42 private: | 42 private: |
43 ChannelSplitterHandler(AudioNode&, float sampleRate, unsigned numberOfOutput
s); | 43 ChannelSplitterHandler(AudioNode&, float sampleRate, unsigned numberOfOutput
s); |
44 }; | 44 }; |
45 | 45 |
46 class ChannelSplitterNode final : public AudioNode { | 46 class ChannelSplitterNode final : public AudioNode { |
47 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
48 public: | 48 public: |
49 static ChannelSplitterNode* create(AudioContext&, float sampleRate, unsigned
numberOfOutputs); | 49 static ChannelSplitterNode* create(AudioContext&, float sampleRate, unsigned
numberOfOutputs); |
50 | 50 |
51 private: | 51 private: |
52 ChannelSplitterNode(AudioContext&, float sampleRate, unsigned numberOfOutput
s); | 52 ChannelSplitterNode(AudioContext&, float sampleRate, unsigned numberOfOutput
s); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace blink | 55 } // namespace blink |
56 | 56 |
57 #endif // ChannelSplitterNode_h | 57 #endif // ChannelSplitterNode_h |
OLD | NEW |