Audacity 3.2.0
RepeatBase.h
Go to the documentation of this file.
1#pragma once
2
3#include "ShuttleAutomation.h"
4#include "StatefulEffect.h"
5
6class BUILTIN_EFFECTS_API RepeatBase : public StatefulEffect
7{
8public:
9 static inline RepeatBase *
12
13 RepeatBase();
14 virtual ~RepeatBase();
15
16 // ComponentInterface implementation
17
18 ComponentInterfaceSymbol GetSymbol() const override;
19 TranslatableString GetDescription() const override;
20 ManualPageID ManualPage() const override;
21
22 // EffectDefinitionInterface implementation
23
24 EffectType GetType() const override;
25
26 // Effect implementation
27
28 bool Process(EffectInstance &instance, EffectSettings &settings) override;
29
30 bool NeedsDither() const override;
31
32protected:
33 // RepeatBase implementation
35
36 const EffectParameterMethods& Parameters() const override;
37
39 L"Count",1, 1, INT_MAX, 1 };
40};
EffectType
static Settings & settings()
Definition: TrackInfo.cpp:51
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
virtual EffectType GetType() const =0
Type determines how it behaves.
virtual ManualPageID ManualPage() const
Name of a page in the Audacity alpha manual, default is empty.
virtual const EffectParameterMethods & Parameters() const
Definition: Effect.cpp:96
TranslatableString GetDescription() const override
Definition: Effect.cpp:64
ComponentInterfaceSymbol GetSymbol() const override
Definition: Effect.cpp:49
Performs effect computation.
Interface for manipulations of an Effect's settings.
static RepeatBase * FetchParameters(RepeatBase &e, EffectSettings &)
Definition: RepeatBase.h:10
int repeatCount
Definition: RepeatBase.h:34
static const ComponentInterfaceSymbol Symbol
Definition: RepeatBase.h:11
virtual bool Process(EffectInstance &instance, EffectSettings &settings)=0
virtual bool NeedsDither() const
Holds a msgid for the translation catalog; may also bind format arguments.
size_t Count(const Ptr< Type, BaseDeleter > &p)
Find out how many elements were allocated with a Ptr.
Definition: PackedArray.h:143
Externalized state of a plug-in.