Audacity 3.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 "WaveClip.h"
19
20
22{
26};
27
29{
30
31 public:
32 CrossFader();
34
35 //This sets a crossfade mode where the overlapping
36 //tracks are simply mixed equally.
40
41 void ClearClips();
42 //Produces samples according to crossfading rules.
44 sampleCount start, size_t len);
45
46 protected:
48
49 private:
50
51 bool CrossFadeMix(samplePtr buffer, sampleFormat format, sampleCount start, size_t len);
52
54
55
56};
57
58
59
60#endif
FadeType
Definition: CrossFade.h:22
@ FT_MIX
Definition: CrossFade.h:23
@ FT_EXPONENTIAL
Definition: CrossFade.h:25
@ FT_TRIANGULAR
Definition: CrossFade.h:24
sampleFormat
The ordering of these values with operator < agrees with the order of increasing bit width.
Definition: SampleFormat.h:30
char * samplePtr
Definition: SampleFormat.h:57
std::vector< WaveClipHolder > WaveClipHolders
Definition: WaveClip.h:45
Not used by Audacity (yet) apparently work in progress that has been abandoned.
Definition: CrossFade.h:29
FadeType mType
Definition: CrossFade.h:53
WaveClipHolders mClips
Definition: CrossFade.h:47
void SetTriangularCrossFade()
Definition: CrossFade.h:38
bool GetSamples(samplePtr buffer, sampleFormat format, sampleCount start, size_t len)
Definition: CrossFade.cpp:39
void SetMixCrossFade()
Definition: CrossFade.h:37
void SetExponentialCrossFade()
Definition: CrossFade.h:39
void ClearClips()
Definition: CrossFade.cpp:289
bool CrossFadeMix(samplePtr buffer, sampleFormat format, sampleCount start, size_t len)
Definition: CrossFade.cpp:59
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:19