| 156 | } |
| 157 | |
| 158 | void SupersawNode::process(ContextRenderLock & r, int bufferSize) |
| 159 | { |
| 160 | internalNode->update(r, true); |
| 161 | |
| 162 | AudioBus * outputBus = output(0)->bus(r); |
| 163 | |
| 164 | if (!isInitialized() || !outputBus->numberOfChannels()) |
| 165 | { |
| 166 | outputBus->zero(); |
| 167 | return; |
| 168 | } |
| 169 | |
| 170 | AudioBus * dst = nullptr; |
| 171 | internalNode->gainNode->input(0)->bus(r)->zero(); |
| 172 | /*AudioBus * renderedBus =*/ internalNode->gainNode->input(0)->pull(r, dst, bufferSize); |
| 173 | internalNode->gainNode->process(r, bufferSize); |
| 174 | AudioBus * inputBus = internalNode->gainNode->output(0)->bus(r); |
| 175 | outputBus->copyFrom(*inputBus); |
| 176 | outputBus->clearSilentFlag(); |
| 177 | } |
| 178 | |
| 179 | void SupersawNode::update(ContextRenderLock & r) |
| 180 | { |
nothing calls this directly
no test coverage detected