14#ifndef __AUDACITY_STATEFUL_EFFECT_BASE__
15#define __AUDACITY_STATEFUL_EFFECT_BASE__
33 size_t GetBlockSize()
const override;
40 unsigned numChannels,
float sampleRate)
override;
41 bool RealtimeSuspend()
override;
42 bool RealtimeResume()
override;
45 const float *
const *inBuf,
float *
const *outBuf,
size_t numSamples)
50 unsigned GetAudioInCount()
const override;
51 unsigned GetAudioOutCount()
const override;
53 bool NeedsDither()
const override;
58 bool ProcessFinalize() noexcept override;
93 virtual bool RealtimeSuspend();
99 virtual bool RealtimeResume();
114 const float *
const *inBuf,
float *
const *outBuf,
size_t numSamples);
138 virtual size_t GetBlockSize()
const;
144 virtual unsigned GetAudioInCount()
const;
150 virtual unsigned GetAudioOutCount()
const;
160 virtual bool NeedsDither()
const;
171 virtual bool ProcessFinalize() noexcept;
175 size_t mEffectBlockSize{ 0 };
static Settings & settings()
Performs effect computation.
Performs effect computation.
Hold values to send to effect output meters.
Calls through to members of StatefulEffectBase.
virtual bool Process(EffectInstance &instance, EffectSettings &settings)=0
Positions or offsets within audio files need a wide type.
constexpr auto sampleRate
constexpr auto maxBlockSize
Externalized state of a plug-in.