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

Method EffectStage

libraries/lib-mixer/EffectStage.cpp:59–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59EffectStage::EffectStage(
60 CreateToken, int channel, int nInputChannels, Source& upstream,
61 Buffers& inBuffers, const Factory& factory, EffectSettings& settings,
62 double sampleRate, std::optional<sampleCount> genLength)
63 : mUpstream { upstream }
64 , mInBuffers { inBuffers }
65 , mInstances { MakeInstances(
66 factory, settings, sampleRate, genLength, channel, nInputChannels) }
67 , mSettings { settings }
68 , mSampleRate { sampleRate }
69 , mIsProcessor { !genLength.has_value() }
70 , mDelayRemaining { genLength ? *genLength : sampleCount::max() }
71{
72 assert(upstream.AcceptsBlockSize(inBuffers.BlockSize()));
73 assert(this->AcceptsBlockSize(inBuffers.BlockSize()));
74
75 // Establish invariant
76 mInBuffers.Rewind();
77}
78
79auto EffectStage::Create(
80 int channel, int nInputChannels, Source& upstream, Buffers& inBuffers,

Callers

nothing calls this directly

Calls 5

AcceptsBlockSizeMethod · 0.95
MakeInstancesFunction · 0.85
maxFunction · 0.85
has_valueMethod · 0.80
RewindMethod · 0.80

Tested by

no test coverage detected