MCPcopy Create free account
hub / github.com/LabSound/LabSound / process

Method process

src/extended/SupersawNode.cpp:158–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void 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
179void SupersawNode::update(ContextRenderLock & r)
180{

Callers

nothing calls this directly

Calls 9

inputMethod · 0.80
outputMethod · 0.80
updateMethod · 0.45
busMethod · 0.45
numberOfChannelsMethod · 0.45
zeroMethod · 0.45
pullMethod · 0.45
copyFromMethod · 0.45
clearSilentFlagMethod · 0.45

Tested by

no test coverage detected