1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00
Paul Licameli 990080ae7d Replace virtual with override wherever possible; eliminate needless virtual...
... for functions in final classes.

override is like const -- it's not necessary, but it helps the compiler to
catch mistakes.

There may be some overriding functions not explicitly declared virtual and I did
not identify such cases, in which I might also add override.
2016-02-26 12:35:38 -05:00

52 lines
1.1 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
Fade.h
Dominic Mazzoni
**********************************************************************/
#ifndef __AUDACITY_EFFECT_FADE__
#define __AUDACITY_EFFECT_FADE__
#include <wx/string.h>
#include "Effect.h"
#define FADEIN_PLUGIN_SYMBOL XO("Fade In")
#define FADEOUT_PLUGIN_SYMBOL XO("Fade Out")
class EffectFade final : public Effect
{
public:
EffectFade(bool fadeIn = false);
virtual ~EffectFade();
// IdentInterface implementation
wxString GetSymbol() override;
wxString GetDescription() override;
// EffectIdentInterface implementation
EffectType GetType() override;
bool IsInteractive() override;
// EffectClientInterface implementation
int GetAudioInCount() override;
int GetAudioOutCount() override;
bool ProcessInitialize(sampleCount totalLen, ChannelNames chanMap = NULL) override;
sampleCount ProcessBlock(float **inBlock, float **outBlock, sampleCount blockLen) override;
private:
// EffectFadeIn implementation
bool mFadeIn;
sampleCount mSample;
};
#endif