| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // glitches. | 106 // glitches. |
| 107 // The value chosen must carefully balance between latency and audio quality
. | 107 // The value chosen must carefully balance between latency and audio quality
. |
| 108 static ScriptProcessorNode* create(BaseAudioContext&, ExceptionState&); | 108 static ScriptProcessorNode* create(BaseAudioContext&, ExceptionState&); |
| 109 static ScriptProcessorNode* create(BaseAudioContext&, size_t bufferSize, Exc
eptionState&); | 109 static ScriptProcessorNode* create(BaseAudioContext&, size_t bufferSize, Exc
eptionState&); |
| 110 static ScriptProcessorNode* create(BaseAudioContext&, size_t bufferSize, uns
igned numberOfInputChannels, ExceptionState&); | 110 static ScriptProcessorNode* create(BaseAudioContext&, size_t bufferSize, uns
igned numberOfInputChannels, ExceptionState&); |
| 111 static ScriptProcessorNode* create(BaseAudioContext&, size_t bufferSize, uns
igned numberOfInputChannels, unsigned numberOfOutputChannels, ExceptionState&); | 111 static ScriptProcessorNode* create(BaseAudioContext&, size_t bufferSize, uns
igned numberOfInputChannels, unsigned numberOfOutputChannels, ExceptionState&); |
| 112 | 112 |
| 113 DEFINE_ATTRIBUTE_EVENT_LISTENER(audioprocess); | 113 DEFINE_ATTRIBUTE_EVENT_LISTENER(audioprocess); |
| 114 size_t bufferSize() const; | 114 size_t bufferSize() const; |
| 115 | 115 |
| 116 // ActiveScriptWrappable | 116 // ScriptWrappable |
| 117 bool hasPendingActivity() const final; | 117 bool hasPendingActivity() const final; |
| 118 | 118 |
| 119 DEFINE_INLINE_VIRTUAL_TRACE() { AudioNode::trace(visitor); } | 119 DEFINE_INLINE_VIRTUAL_TRACE() { AudioNode::trace(visitor); } |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 ScriptProcessorNode(BaseAudioContext&, float sampleRate, size_t bufferSize,
unsigned numberOfInputChannels, unsigned numberOfOutputChannels); | 122 ScriptProcessorNode(BaseAudioContext&, float sampleRate, size_t bufferSize,
unsigned numberOfInputChannels, unsigned numberOfOutputChannels); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace blink | 125 } // namespace blink |
| 126 | 126 |
| 127 #endif // ScriptProcessorNode_h | 127 #endif // ScriptProcessorNode_h |
| OLD | NEW |