Audacity  2.2.0
Fade.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Fade.h
6 
7  Dominic Mazzoni
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_EFFECT_FADE__
12 #define __AUDACITY_EFFECT_FADE__
13 
14 #include <wx/string.h>
15 
16 #include "Effect.h"
17 
18 #define FADEIN_PLUGIN_SYMBOL XO("Fade In")
19 #define FADEOUT_PLUGIN_SYMBOL XO("Fade Out")
20 
21 class EffectFade final : public Effect
22 {
23 public:
24  EffectFade(bool fadeIn = false);
25  virtual ~EffectFade();
26 
27  // IdentInterface implementation
28 
29  wxString GetSymbol() override;
30  wxString GetDescription() override;
31 
32  // EffectIdentInterface implementation
33 
34  EffectType GetType() override;
35  bool IsInteractive() override;
36 
37  // EffectClientInterface implementation
38 
39  unsigned GetAudioInCount() override;
40  unsigned GetAudioOutCount() override;
41  bool ProcessInitialize(sampleCount totalLen, ChannelNames chanMap = NULL) override;
42  size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
43 
44 private:
45  // EffectFadeIn implementation
46 
47  bool mFadeIn;
48  sampleCount mSample;
49 };
50 
51 #endif
bool mFadeIn
Definition: Fade.h:47
sampleCount mSample
Definition: Fade.h:48
wxString GetDescription() override
Definition: Fade.cpp:40
Base class for many of the effects in Audacity.
Definition: Effect.h:62
unsigned GetAudioOutCount() override
Definition: Fade.cpp:66
wxString GetSymbol() override
Definition: Fade.cpp:33
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override
Definition: Fade.cpp:78
An Effect that reduces the volume to zero over achosen interval.
Definition: Fade.h:21
bool IsInteractive() override
Definition: Fade.cpp:54
bool ProcessInitialize(sampleCount totalLen, ChannelNames chanMap=NULL) override
Definition: Fade.cpp:71
unsigned GetAudioInCount() override
Definition: Fade.cpp:61
EffectType GetType() override
Definition: Fade.cpp:49
EffectFade(bool fadeIn=false)
Definition: Fade.cpp:22
virtual ~EffectFade()
Definition: Fade.cpp:27