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 16 matching lines...) Expand all Loading... |
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 WebCore { | 31 namespace WebCore { |
32 | 32 |
33 class AudioContext; | 33 class AudioContext; |
34 | 34 |
35 class ChannelSplitterNode FINAL : public AudioNode { | 35 class ChannelSplitterNode FINAL : public AudioNode { |
36 public: | 36 public: |
37 static PassRefPtr<ChannelSplitterNode> create(AudioContext*, float sampleRat
e, unsigned numberOfOutputs); | 37 static PassRefPtrWillBeRawPtr<ChannelSplitterNode> create(AudioContext*, flo
at sampleRate, unsigned numberOfOutputs); |
38 | 38 |
39 // AudioNode | 39 // AudioNode |
40 virtual void process(size_t framesToProcess) OVERRIDE; | 40 virtual void process(size_t framesToProcess) OVERRIDE; |
41 | 41 |
42 private: | 42 private: |
43 virtual double tailTime() const OVERRIDE { return 0; } | 43 virtual double tailTime() const OVERRIDE { return 0; } |
44 virtual double latencyTime() const OVERRIDE { return 0; } | 44 virtual double latencyTime() const OVERRIDE { return 0; } |
45 | 45 |
46 ChannelSplitterNode(AudioContext*, float sampleRate, unsigned numberOfOutput
s); | 46 ChannelSplitterNode(AudioContext*, float sampleRate, unsigned numberOfOutput
s); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace WebCore | 49 } // namespace WebCore |
50 | 50 |
51 #endif // ChannelSplitterNode_h | 51 #endif // ChannelSplitterNode_h |
OLD | NEW |