52 ?
XO(
"Applies a linear fade-in to the selected audio")
53 :
XO(
"Applies a linear fade-out to the selected audio");
86 const float *
const *inBlock,
float *
const *outBlock,
size_t blockLen)
88 const float *ibuf = inBlock[0];
89 float *obuf = outBlock[0];
93 for (
decltype(blockLen) i = 0; i < blockLen; i++)
96 (ibuf[i] * (
mSample++ ).as_float()) /
102 for (
decltype(blockLen) i = 0; i < blockLen; i++)
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
unsigned GetAudioInCount() const override
How many input buffers to allocate at once.
EffectType GetType() const override
Type determines how it behaves.
unsigned GetAudioOutCount() const override
How many output buffers to allocate at once.
bool ProcessInitialize(EffectSettings &settings, double sampleRate, ChannelNames chanMap) override
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
EffectFade(bool fadeIn=false)
TranslatableString GetDescription() const override
size_t ProcessBlock(EffectSettings &settings, const float *const *inBlock, float *const *outBlock, size_t blockLen) override
Called for destructive effect computation.
ComponentInterfaceSymbol GetSymbol() const override
static const ComponentInterfaceSymbol Symbol
static const ComponentInterfaceSymbol Symbol
Holds a msgid for the translation catalog; may also bind format arguments.
BuiltinEffectsModule::Registration< EffectFadeOut > reg2
BuiltinEffectsModule::Registration< EffectFadeIn > reg
Externalized state of a plug-in.