Audacity 3.2.0
|
Public Member Functions | |
Instance (const PerTrackEffect &effect) | |
bool | ProcessInitialize (EffectSettings &settings, double sampleRate, ChannelNames chanMap) override |
size_t | ProcessBlock (EffectSettings &settings, const float *const *inBlock, float *const *outBlock, size_t blockLen) override |
Called for destructive effect computation. More... | |
bool | ProcessFinalize (void) noexcept override |
bool | RealtimeInitialize (EffectSettings &settings, double sampleRate) override |
bool | RealtimeAddProcessor (EffectSettings &settings, EffectOutputs *, unsigned numChannels, float sampleRate) override |
bool | RealtimeFinalize (EffectSettings &settings) noexcept override |
size_t | RealtimeProcess (size_t group, EffectSettings &settings, const float *const *inbuf, float *const *outbuf, size_t numSamples) override |
bool | RealtimeSuspend () override |
unsigned | GetAudioOutCount () const override |
How many output buffers to allocate at once. More... | |
unsigned | GetAudioInCount () const override |
How many input buffers to allocate at once. More... | |
bool | InstanceInit (EffectSettings &settings, double sampleRate, EffectReverbState &data, ChannelNames chanMap, bool forceStereo) |
size_t | InstanceProcess (EffectSettings &settings, EffectReverbState &data, const float *const *inBlock, float *const *outBlock, size_t blockLen) |
Public Member Functions inherited from PerTrackEffect::Instance | |
Instance (const PerTrackEffect &processor) | |
~Instance () override | |
bool | Process (EffectSettings &settings) final |
Uses the other virtual functions of this class. More... | |
bool | ProcessInitialize (EffectSettings &settings, double sampleRate, ChannelNames chanMap) override |
bool | ProcessFinalize () noexcept override |
Public Member Functions inherited from EffectInstanceEx | |
virtual bool | Init () |
Call once to set up state for whole list of tracks to be processed. More... | |
virtual bool | Process (EffectSettings &settings)=0 |
Actually do the effect here. More... | |
~EffectInstanceEx () override | |
Public Member Functions inherited from EffectInstance | |
virtual | ~EffectInstance () |
virtual size_t | GetBlockSize () const =0 |
virtual size_t | SetBlockSize (size_t maxBlockSize)=0 |
virtual unsigned | GetAudioInCount () const =0 |
How many input buffers to allocate at once. More... | |
virtual unsigned | GetAudioOutCount () const =0 |
How many output buffers to allocate at once. More... | |
virtual bool | RealtimeInitialize (EffectSettings &settings, double sampleRate) |
virtual bool | RealtimeAddProcessor (EffectSettings &settings, EffectOutputs *pOutputs, unsigned numChannels, float sampleRate) |
virtual bool | RealtimeSuspend () |
virtual bool | RealtimeResume () |
virtual std::unique_ptr< Message > | MakeMessage () const |
Called on the main thread, in which the result may be cloned. More... | |
virtual bool | UsesMessages () const noexcept |
virtual bool | RealtimeProcessStart (MessagePackage &package) |
settings are possibly changed, since last call, by an asynchronous dialog More... | |
virtual size_t | RealtimeProcess (size_t group, EffectSettings &settings, const float *const *inBuf, float *const *outBuf, size_t numSamples) |
virtual void | RealtimePassThrough (size_t group, EffectSettings &settings, const float *const *inBuf, size_t numSamples) |
Called instead of RealtimeProcess when the effect is bypassed. Default implementation does nothing. More... | |
virtual bool | RealtimeProcessEnd (EffectSettings &settings) noexcept |
settings can be updated to let a dialog change appearance at idle More... | |
virtual bool | RealtimeFinalize (EffectSettings &settings) noexcept |
virtual size_t | GetTailSize () const |
virtual SampleCount | GetLatency (const EffectSettings &settings, double sampleRate) const |
virtual bool | NeedsDither () const |
virtual bool | ProcessInitialize (EffectSettings &settings, double sampleRate, ChannelNames chanMap)=0 |
virtual bool | ProcessFinalize () noexcept=0 |
virtual size_t | ProcessBlock (EffectSettings &settings, const float *const *inBlock, float *const *outBlock, size_t blockLen)=0 |
Called for destructive effect computation. More... | |
Public Member Functions inherited from EffectInstanceWithBlockSize | |
~EffectInstanceWithBlockSize () override | |
size_t | GetBlockSize () const override |
size_t | SetBlockSize (size_t maxBlockSize) override |
Public Attributes | |
EffectReverbState | mState |
std::vector< EffectReverb::Instance > | mSlaves |
unsigned | mChannels { 2 } |
EffectReverbSettings | mLastAppliedSettings |
double | mLastSampleRate { 0 } |
Additional Inherited Members | |
Public Types inherited from EffectInstance | |
using | Message = EffectSettingsAccess::Message |
using | SampleCount = uint64_t |
Protected Attributes inherited from PerTrackEffect::Instance | |
const PerTrackEffect & | mProcessor |
Protected Attributes inherited from EffectInstanceWithBlockSize | |
size_t | mBlockSize { 0 } |
Definition at line 213 of file Reverb.cpp.
|
inlineexplicit |
Definition at line 217 of file Reverb.cpp.
|
inlineoverridevirtual |
How many input buffers to allocate at once.
If the instance processes channels independently, this can return 1 The result is not necessarily well defined before RealtimeInitialize
Implements EffectInstance.
Definition at line 323 of file Reverb.cpp.
References mChannels.
|
inlineoverridevirtual |
How many output buffers to allocate at once.
The result is not necessarily well defined before RealtimeInitialize
Implements EffectInstance.
Definition at line 318 of file Reverb.cpp.
References mChannels.
bool EffectReverb::Instance::InstanceInit | ( | EffectSettings & | settings, |
double | sampleRate, | ||
EffectReverbState & | data, | ||
ChannelNames | chanMap, | ||
bool | forceStereo | ||
) |
Definition at line 404 of file Reverb.cpp.
References BLOCK, ChannelNameEOL, ChannelNameFrontRight, EffectWithSettings< EffectReverbSettings, StatelessPerTrackEffect >::GetSettings(), EffectReverbState::mNumChans, EffectReverbState::mP, reverb_create(), anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, and settings().
Referenced by RealtimeAddProcessor().
size_t EffectReverb::Instance::InstanceProcess | ( | EffectSettings & | settings, |
EffectReverbState & | data, | ||
const float *const * | inBlock, | ||
float *const * | outBlock, | ||
size_t | blockLen | ||
) |
Definition at line 451 of file Reverb.cpp.
References BLOCK, dB_to_linear, fifo_write(), EffectWithSettings< EffectReverbSettings, StatelessPerTrackEffect >::GetSettings(), min(), EffectReverbState::mNumChans, EffectReverbState::mP, reverb_process(), and settings().
Referenced by RealtimeProcess().
|
overridevirtual |
Called for destructive effect computation.
Implements EffectInstance.
Definition at line 445 of file Reverb.cpp.
References mState, and settings().
|
overridevirtualnoexcept |
Called at end of destructive processing, for each (mono/stereo) track Default implementation does nothing, returns true This may be called during stack unwinding:
Implements EffectInstance.
Definition at line 440 of file Reverb.cpp.
|
overridevirtual |
Called at start of destructive processing, for each (mono/stereo) track Default implementation does nothing, returns true
chanMap | null or array terminated with ChannelNameEOL. Do not retain the pointer |
GetAudioInCount()
and GetAudioOutCount()
are well defined Implements EffectInstance.
Definition at line 392 of file Reverb.cpp.
References EffectWithSettings< EffectReverbSettings, StatelessPerTrackEffect >::GetSettings(), mState, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, and settings().
|
inlineoverridevirtual |
Reimplemented from EffectInstance.
Definition at line 242 of file Reverb.cpp.
References InstanceInit(), PerTrackEffect::Instance::mProcessor, mSlaves, mState, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, and settings().
|
inlineoverridevirtualnoexcept |
Reimplemented from EffectInstance.
Definition at line 257 of file Reverb.cpp.
References mSlaves.
|
inlineoverridevirtual |
GetAudioInCount()
and GetAudioOutCount()
are well definedDefault implementation does nothing, returns false (so assume realtime is not supported). Other member functions related to realtime return true or zero, but will not be called, unless a derived class overrides RealtimeInitialize.
Reimplemented from EffectInstance.
Definition at line 231 of file Reverb.cpp.
References EffectWithSettings< EffectReverbSettings, StatelessPerTrackEffect >::GetSettings(), mLastAppliedSettings, mLastSampleRate, mSlaves, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, EffectInstanceWithBlockSize::SetBlockSize(), and settings().
|
inlineoverridevirtual |
Reimplemented from EffectInstance.
Definition at line 263 of file Reverb.cpp.
References EffectWithSettings< EffectReverbSettings, StatelessPerTrackEffect >::GetSettings(), InstanceProcess(), mLastAppliedSettings, mLastSampleRate, mSlaves, mState, OnlySimpleParametersChanged(), reverb_init(), reverb_set_simple_params(), and settings().
|
inlineoverridevirtual |
Reimplemented from EffectInstance.
Definition at line 304 of file Reverb.cpp.
References mSlaves, and reverb_clear().
unsigned EffectReverb::Instance::mChannels { 2 } |
Definition at line 337 of file Reverb.cpp.
Referenced by GetAudioInCount(), and GetAudioOutCount().
EffectReverbSettings EffectReverb::Instance::mLastAppliedSettings |
Definition at line 339 of file Reverb.cpp.
Referenced by RealtimeInitialize(), and RealtimeProcess().
double EffectReverb::Instance::mLastSampleRate { 0 } |
Definition at line 340 of file Reverb.cpp.
Referenced by RealtimeInitialize(), and RealtimeProcess().
std::vector<EffectReverb::Instance> EffectReverb::Instance::mSlaves |
Definition at line 335 of file Reverb.cpp.
Referenced by RealtimeAddProcessor(), RealtimeFinalize(), RealtimeInitialize(), RealtimeProcess(), and RealtimeSuspend().
EffectReverbState EffectReverb::Instance::mState |
Definition at line 334 of file Reverb.cpp.
Referenced by RealtimeAddProcessor(), and RealtimeProcess().