Audacity 3.2.0
Functions
anonymous_namespace{RealtimeEffectState.cpp} Namespace Reference

Functions

template<typename F >
void AllocateChannelsToProcessors (unsigned chans, const unsigned numAudioIn, const unsigned numAudioOut, const F &f)
 

Function Documentation

◆ AllocateChannelsToProcessors()

template<typename F >
void anonymous_namespace{RealtimeEffectState.cpp}::AllocateChannelsToProcessors ( unsigned  chans,
const unsigned  numAudioIn,
const unsigned  numAudioOut,
const F &  f 
)

Definition at line 440 of file RealtimeEffectState.cpp.

443{
444 unsigned indx = 0;
445 for (unsigned ondx = 0; ondx < chans; ondx += numAudioOut) {
446 // Pass the function indices into the arrays of buffers
447 if (!f(indx, ondx))
448 return;
449 indx += numAudioIn;
450 indx %= chans;
451 }
452}

Referenced by RealtimeEffectState::AddGroup(), and RealtimeEffectState::Process().

Here is the caller graph for this function: