Audacity  2.2.0
CrossFade.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  CrossFade.h
6 
7  (c) 2005 The Audacity Team
8  Licensed under the GPL version 2.0
9 
10 **********************************************************************/
11 #ifndef __AUDACITY_CROSSFADE__
12 #define __AUDACITY_CROSSFADE__
13 
17 
18 #include "SampleFormat.h"
19 #include "WaveClip.h"
20 
21 
23 {
27 };
28 
30 {
31 
32  public:
33  CrossFader();
34  ~CrossFader();
35 
36  //This sets a crossfade mode where the overlapping
37  //tracks are simply mixed equally.
41 
42  void ClearClips();
43  //Produces samples according to crossfading rules.
44  bool GetSamples(samplePtr buffer, sampleFormat format,
45  sampleCount start, size_t len);
46 
47  protected:
49 
50  private:
51 
52  bool CrossFadeMix(samplePtr buffer, sampleFormat format, sampleCount start, size_t len);
53 
55 
56 
57 };
58 
59 
60 
61 #endif
WaveClipHolders mClips
Definition: CrossFade.h:48
Definition: CrossFade.h:24
FadeType
Definition: CrossFade.h:22
void SetTriangularCrossFade()
Definition: CrossFade.h:39
Definition: CrossFade.h:25
std::vector< WaveClipHolder > WaveClipHolders
Definition: WaveClip.h:123
Definition: CrossFade.h:26
Not used by Audacity (yet) apparently work in progress that has been abandoned.
Definition: CrossFade.h:29
FadeType mType
Definition: CrossFade.h:54
int format
Definition: ExportPCM.cpp:56
void ClearClips()
Definition: CrossFade.cpp:290
CrossFader()
Definition: CrossFade.cpp:27
void SetExponentialCrossFade()
Definition: CrossFade.h:40
~CrossFader()
Definition: CrossFade.cpp:34
void SetMixCrossFade()
Definition: CrossFade.h:38
bool CrossFadeMix(samplePtr buffer, sampleFormat format, sampleCount start, size_t len)
Definition: CrossFade.cpp:60
bool GetSamples(samplePtr buffer, sampleFormat format, sampleCount start, size_t len)
Definition: CrossFade.cpp:40