applies linear fade-in.
More...
#include <LinearFadeIn.h>
◆ LinearFadeIn() [1/3]
HephAudio::LinearFadeIn::LinearFadeIn |
( |
| ) |
|
creates a new instance and initializes it with default values.
◆ LinearFadeIn() [2/3]
HephAudio::LinearFadeIn::LinearFadeIn |
( |
double | duration | ) |
|
|
explicit |
creates a new instance and initializes it with the provided values.
- Parameters
-
duration | duration of the fade-in in seconds. |
◆ LinearFadeIn() [3/3]
HephAudio::LinearFadeIn::LinearFadeIn |
( |
double | duration, |
|
|
size_t | startIndex ) |
creates a new instance and initializes it with the provided values.
- Parameters
-
duration | duration of the fade-in in seconds. |
startIndex | index of the first audio frame the effect will be applied to. |
◆ ~LinearFadeIn()
virtual HephAudio::LinearFadeIn::~LinearFadeIn |
( |
| ) |
|
|
virtualdefault |
releases the resources and destroys the instance.
◆ Name()
virtual std::string HephAudio::LinearFadeIn::Name |
( |
| ) |
const |
|
overridevirtual |
◆ Process() [1/3]
virtual void HephAudio::LinearFadeIn::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::LinearFadeIn::GetDuration |
( |
| ) |
const |
|
virtual |
gets the duration in seconds.
◆ SetDuration()
virtual void HephAudio::LinearFadeIn::SetDuration |
( |
double | duration | ) |
|
|
virtual |
sets the duration.
- Parameters
-
duration | duration of the fade-in in seconds. |
◆ GetStartIndex()
virtual size_t HephAudio::LinearFadeIn::GetStartIndex |
( |
| ) |
const |
|
virtual |
◆ SetStartIndex()
virtual void HephAudio::LinearFadeIn::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::LinearFadeIn::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::LinearFadeIn::duration |
|
protected |
duration of the fade-in in seconds.
◆ startIndex
size_t HephAudio::LinearFadeIn::startIndex |
|
protected |
index of the first audio frame the effect will be applied to.
◆ currentIndex
size_t HephAudio::LinearFadeIn::currentIndex |
|
protected |
for real-time processing.