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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // The value chosen must carefully balance between latency and audio quality
. | 57 // The value chosen must carefully balance between latency and audio quality
. |
58 static PassRefPtr<ScriptProcessorNode> create(AudioContext*, float sampleRat
e, size_t bufferSize, unsigned numberOfInputChannels, unsigned numberOfOutputCha
nnels); | 58 static PassRefPtr<ScriptProcessorNode> create(AudioContext*, float sampleRat
e, size_t bufferSize, unsigned numberOfInputChannels, unsigned numberOfOutputCha
nnels); |
59 | 59 |
60 virtual ~ScriptProcessorNode(); | 60 virtual ~ScriptProcessorNode(); |
61 | 61 |
62 virtual void trace(Visitor* visitor) OVERRIDE | 62 virtual void trace(Visitor* visitor) OVERRIDE |
63 { | 63 { |
64 AudioNode::trace(visitor); | 64 AudioNode::trace(visitor); |
65 } | 65 } |
66 | 66 |
67 virtual void visitWith(Visitor* visitor) const OVERRIDE | 67 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
68 { | 68 { |
69 visitor->visit(this); | 69 visitor->mark(this); |
70 } | 70 } |
71 | 71 |
72 // AudioNode | 72 // AudioNode |
73 virtual void process(size_t framesToProcess); | 73 virtual void process(size_t framesToProcess); |
74 virtual void reset(); | 74 virtual void reset(); |
75 virtual void initialize(); | 75 virtual void initialize(); |
76 virtual void uninitialize(); | 76 virtual void uninitialize(); |
77 | 77 |
78 // EventTarget | 78 // EventTarget |
79 virtual const AtomicString& interfaceName() const; | 79 virtual const AtomicString& interfaceName() const; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 unsigned m_numberOfInputChannels; | 115 unsigned m_numberOfInputChannels; |
116 unsigned m_numberOfOutputChannels; | 116 unsigned m_numberOfOutputChannels; |
117 | 117 |
118 AudioBus m_internalInputBus; | 118 AudioBus m_internalInputBus; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace WebCore | 121 } // namespace WebCore |
122 | 122 |
123 #endif // ScriptProcessorNode_h | 123 #endif // ScriptProcessorNode_h |
OLD | NEW |