applies linear fade-out.
More...
#include <LinearFadeOut.h>
◆ LinearFadeOut() [1/3]
HephAudio::LinearFadeOut::LinearFadeOut |
( |
| ) |
|
creates a new instance and initializes it with default values.
◆ LinearFadeOut() [2/3]
HephAudio::LinearFadeOut::LinearFadeOut |
( |
double | duration | ) |
|
|
explicit |
creates a new instance and initializes it with the provided values.
- Parameters
-
duration | duration of the fade-out in seconds. |
◆ LinearFadeOut() [3/3]
HephAudio::LinearFadeOut::LinearFadeOut |
( |
double | duration, |
|
|
size_t | startIndex ) |
creates a new instance and initializes it with the provided values.
- Parameters
-
duration | duration of the fade-out in seconds. |
startIndex | index of the first audio frame the effect will be applied to. |
◆ ~LinearFadeOut()
virtual HephAudio::LinearFadeOut::~LinearFadeOut |
( |
| ) |
|
|
virtualdefault |
releases the resources and destroys the instance.
◆ Name()
virtual std::string HephAudio::LinearFadeOut::Name |
( |
| ) |
const |
|
overridevirtual |
◆ Process() [1/3]
virtual void HephAudio::LinearFadeOut::Process |
( |
AudioBuffer & | buffer, |
|
|
size_t | startIndex, |
|
|
size_t | frameCount ) |
|
overridevirtual |
Applies the effect.
- Parameters
-
buffer | contains the audio data which will be processed. |
startIndex | index of the first audio frame to process. |
frameCount | number of frames to process. |
Reimplemented from HephAudio::AudioEffect.
◆ GetDuration()
virtual double HephAudio::LinearFadeOut::GetDuration |
( |
| ) |
const |
|
virtual |
gets the duration in seconds.
◆ SetDuration()
virtual void HephAudio::LinearFadeOut::SetDuration |
( |
double | duration | ) |
|
|
virtual |
sets the duration.
- Parameters
-
duration | duration of the fade-out in seconds. |
◆ GetStartIndex()
virtual size_t HephAudio::LinearFadeOut::GetStartIndex |
( |
| ) |
const |
|
virtual |
◆ SetStartIndex()
virtual void HephAudio::LinearFadeOut::SetStartIndex |
( |
size_t | startIndex | ) |
|
|
virtual |
sets the start index.
- Parameters
-
startIndex | index of the first audio frame the effect will be applied to. |
◆ ProcessST()
virtual void HephAudio::LinearFadeOut::ProcessST |
( |
const AudioBuffer & | inputBuffer, |
|
|
AudioBuffer & | outputBuffer, |
|
|
size_t | startIndex, |
|
|
size_t | frameCount ) |
|
overrideprotectedvirtual |
applies the effect using single thread.
- Parameters
-
inputBuffer | contains the dry data. |
outputBuffer | contains the wet data. |
startIndex | index of the first sample to process. |
frameCount | number of frames to process. |
Implements HephAudio::AudioEffect.
◆ Process() [2/3]
virtual void HephAudio::AudioEffect::Process |
( |
AudioBuffer & | buffer | ) |
|
|
virtual |
Applies the effect.
- Parameters
-
buffer | contains the audio data which will be processed. |
Reimplemented from HephAudio::AudioEffect.
◆ Process() [3/3]
virtual void HephAudio::AudioEffect::Process |
( |
AudioBuffer & | buffer, |
|
|
size_t | startIndex ) |
|
virtual |
Applies the effect.
- Parameters
-
buffer | contains the audio data which will be processed. |
startIndex | index of the first audio frame to process. |
Reimplemented from HephAudio::AudioEffect.
◆ duration
double HephAudio::LinearFadeOut::duration |
|
protected |
duration of the fade-out in seconds.
◆ startIndex
size_t HephAudio::LinearFadeOut::startIndex |
|
protected |
index of the first audio frame the effect will be applied to.
◆ currentIndex
size_t HephAudio::LinearFadeOut::currentIndex |
|
protected |
for real-time processing.