MCPcopy Create free account
hub / github.com/audacity/audacity / RealtimeProcess

Method RealtimeProcess

libraries/lib-vst/VSTInstance.cpp:336–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336size_t VSTInstance::RealtimeProcess(size_t group, EffectSettings &settings,
337 const float *const *inbuf, float *const *outbuf, size_t numSamples)
338{
339 if (!mRecruited)
340 {
341 // unexpected!
342 return 0;
343 }
344
345 wxASSERT(numSamples <= mBlockSize);
346
347 if (group == 0)
348 {
349 // use the recruited "this" instance
350 return ProcessBlock(settings, inbuf, outbuf, numSamples);
351 }
352 else if (group <= mSlaves.size())
353 {
354 // use the slave which maps to the group
355 return mSlaves[group - 1]->ProcessBlock(settings, inbuf, outbuf, numSamples);
356 }
357 else
358 return 0;
359}
360
361bool VSTInstance::RealtimeProcessEnd(EffectSettings &) noexcept
362{

Callers 1

ProcessMethod · 0.45

Calls 2

sizeMethod · 0.45
ProcessBlockMethod · 0.45

Tested by

no test coverage detected