| 167 | } |
| 168 | |
| 169 | void AnalyserNode::process(ContextRenderLock & r, int bufferSize) |
| 170 | { |
| 171 | AudioBus * outputBus = output(0)->bus(r); |
| 172 | AudioBus * inputBus = input(0)->bus(r); |
| 173 | |
| 174 | if (!isInitialized() || !input(0)->isConnected() || !inputBus) |
| 175 | { |
| 176 | if (outputBus) |
| 177 | outputBus->zero(); |
| 178 | return; |
| 179 | } |
| 180 | |
| 181 | // Give the analyser all the audio which is passing through this AudioNode. |
| 182 | _detail->m_analyser->writeInput(r, inputBus, bufferSize); |
| 183 | |
| 184 | if (inputBus != outputBus) |
| 185 | { |
| 186 | outputBus->copyFrom(*inputBus); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | void AnalyserNode::reset(ContextRenderLock &) |
| 191 | { |
nothing calls this directly
no test coverage detected