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

Method process

src/extended/GranulationNode.cpp:188–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void GranulationNode::process(ContextRenderLock& r, int bufferSize)
189{
190 AudioBus * outputBus = output(0)->bus(r);
191
192 if (!isInitialized() || !outputBus->numberOfChannels())
193 {
194 outputBus->zero();
195 return;
196 }
197
198 int quantumFrameOffset = _scheduler._renderOffset;
199 int bufferFramesToProcess = _scheduler._renderLength;
200
201 if (!bufferFramesToProcess)
202 {
203 outputBus->zero();
204 return;
205 }
206
207 if (!RenderGranulation(r, outputBus, quantumFrameOffset, bufferFramesToProcess))
208 {
209 outputBus->zero();
210 return;
211 }
212 outputBus->clearSilentFlag();
213}
214
215bool GranulationNode::propagatesSilence(ContextRenderLock & r) const
216{

Callers

nothing calls this directly

Calls 4

busMethod · 0.45
numberOfChannelsMethod · 0.45
zeroMethod · 0.45
clearSilentFlagMethod · 0.45

Tested by

no test coverage detected