| 334 | } |
| 335 | |
| 336 | size_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 | |
| 361 | bool VSTInstance::RealtimeProcessEnd(EffectSettings &) noexcept |
| 362 | { |
no test coverage detected