![]() |
Audacity 3.2.0
|
Public Member Functions | |
Instance (const PerTrackEffect &processor) | |
bool | ProcessInitialize (EffectSettings &settings, double sampleRate, ChannelNames chanMap) override |
bool | ProcessFinalize () noexcept override |
size_t | ProcessBlock (EffectSettings &settings, const float *const *inBlock, float *const *outBlock, size_t blockLen) override |
Called for destructive effect computation. More... | |
SampleCount | GetLatency (const EffectSettings &settings, double sampleRate) const override |
bool | RealtimeInitialize (EffectSettings &settings, double sampleRate) override |
bool | RealtimeAddProcessor (EffectSettings &settings, EffectOutputs *pOutputs, unsigned numChannels, float sampleRate) override |
bool | RealtimeSuspend () override |
bool | RealtimeResume () override |
bool | RealtimeProcessStart (MessagePackage &package) override |
settings are possibly changed, since last call, by an asynchronous dialog More... | |
size_t | RealtimeProcess (size_t group, EffectSettings &settings, const float *const *inBuf, float *const *outBuf, size_t numSamples) override |
bool | RealtimeProcessEnd (EffectSettings &settings) noexcept override |
settings can be updated to let a dialog change appearance at idle More... | |
bool | RealtimeFinalize (EffectSettings &settings) noexcept override |
unsigned | GetAudioInCount () const override |
How many input buffers to allocate at once. More... | |
unsigned | GetAudioOutCount () const override |
How many output buffers to allocate at once. More... | |
const LadspaEffect & | GetEffect () const |
![]() | |
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 |
![]() | |
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 | |
![]() | |
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 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... | |
![]() | |
~EffectInstanceWithBlockSize () override | |
size_t | GetBlockSize () const override |
size_t | SetBlockSize (size_t maxBlockSize) override |
Public Attributes | |
bool | mReady { false } |
LADSPA_Handle | mMaster {} |
std::vector< LADSPA_Handle > | mSlaves |
const bool | mUseLatency |
Additional Inherited Members | |
![]() | |
using | Message = EffectSettingsAccess::Message |
using | SampleCount = uint64_t |
![]() | |
const PerTrackEffect & | mProcessor |
![]() | |
size_t | mBlockSize { 0 } |
Definition at line 919 of file LadspaEffect.cpp.
|
explicit |
Definition at line 963 of file LadspaEffect.cpp.
|
overridevirtual |
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 1055 of file LadspaEffect.cpp.
|
overridevirtual |
How many output buffers to allocate at once.
The result is not necessarily well defined before RealtimeInitialize
Implements EffectInstance.
Definition at line 1050 of file LadspaEffect.cpp.
|
inline |
Definition at line 951 of file LadspaEffect.cpp.
References PerTrackEffect::Instance::mProcessor.
|
overridevirtual |
Default implementation returns 0
Reimplemented from EffectInstance.
Definition at line 974 of file LadspaEffect.cpp.
References LadspaEffectSettings::controls, EffectWithSettings< LadspaEffectSettings, StatelessPerTrackEffect >::GetSettings(), and settings().
|
overridevirtual |
Called for destructive effect computation.
Implements EffectInstance.
Definition at line 1013 of file LadspaEffect.cpp.
|
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 1000 of file LadspaEffect.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 984 of file LadspaEffect.cpp.
References EffectWithSettings< LadspaEffectSettings, StatelessPerTrackEffect >::GetSettings(), and settings().
|
overridevirtual |
Reimplemented from EffectInstance.
Definition at line 1033 of file LadspaEffect.cpp.
References EffectWithSettings< LadspaEffectSettings, StatelessPerTrackEffect >::GetSettings(), and settings().
|
overridevirtualnoexcept |
Reimplemented from EffectInstance.
Definition at line 1060 of file LadspaEffect.cpp.
|
overridevirtual |
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 1028 of file LadspaEffect.cpp.
|
overridevirtual |
Reimplemented from EffectInstance.
Definition at line 1093 of file LadspaEffect.cpp.
|
overridevirtualnoexcept |
settings can be updated to let a dialog change appearance at idle
Reimplemented from EffectInstance.
Definition at line 1113 of file LadspaEffect.cpp.
|
overridevirtual |
settings are possibly changed, since last call, by an asynchronous dialog
Reimplemented from EffectInstance.
Definition at line 1088 of file LadspaEffect.cpp.
|
overridevirtual |
Reimplemented from EffectInstance.
Definition at line 1080 of file LadspaEffect.cpp.
References _LADSPA_Descriptor::activate, fn, and LadspaEffect::mData.
|
overridevirtual |
Reimplemented from EffectInstance.
Definition at line 1072 of file LadspaEffect.cpp.
References _LADSPA_Descriptor::deactivate, fn, and LadspaEffect::mData.
LADSPA_Handle LadspaEffect::Instance::mMaster {} |
Definition at line 955 of file LadspaEffect.cpp.
bool LadspaEffect::Instance::mReady { false } |
Definition at line 954 of file LadspaEffect.cpp.
std::vector<LADSPA_Handle> LadspaEffect::Instance::mSlaves |
Definition at line 958 of file LadspaEffect.cpp.
const bool LadspaEffect::Instance::mUseLatency |
Definition at line 960 of file LadspaEffect.cpp.