Audacity 3.2.0
Classes | Functions
EffectStage.h File Reference
#include "AudioGraphSource.h"
#include "EffectInterface.h"
#include "SampleCount.h"
#include <functional>
Include dependency graph for EffectStage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EffectStage
 Decorates a source with a non-timewarping effect, which may have latency. More...
 
struct  EffectStage::CreateToken
 

Functions

MIXER_API unsigned MakeChannelMap (int nInputChannels, int channel, ChannelName map[3])
 

Function Documentation

◆ MakeChannelMap()

MIXER_API unsigned MakeChannelMap ( int  nInputChannels,
int  channel,
ChannelName  map[3] 
)

Definition at line 370 of file EffectStage.cpp.

371{
372 assert(channel < static_cast<int>(nChannels)); // precondition
373
374 size_t index = 0;
375 if (nChannels == 1)
376 map[index++] = ChannelNameMono;
377 else {
378 // TODO: more-than-two-channels
379 if (channel < 1)
380 map[index++] = ChannelNameFrontLeft;
381 if (channel != 0)
382 map[index++] = ChannelNameFrontRight;
383 }
384 map[index] = ChannelNameEOL;
385 return index;
386}
@ ChannelNameFrontLeft
@ ChannelNameEOL
@ ChannelNameMono
@ ChannelNameFrontRight

References ChannelNameEOL, ChannelNameFrontLeft, ChannelNameFrontRight, and ChannelNameMono.

Referenced by anonymous_namespace{EffectStage.cpp}::MakeInstances(), and PerTrackEffect::ProcessPass().

Here is the caller graph for this function: