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, |
|
|
double | startTime ) |
creates a new instance and initializes it with the provided values.
- Parameters
-
| duration | duration of the fade-in in seconds. |
| startTime | time, in seconds, 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 |
◆ ResetInternalState()
| virtual void HephAudio::LinearFadeIn::ResetInternalState |
( |
| ) |
|
|
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.
◆ GetStartTime()
| virtual double HephAudio::LinearFadeIn::GetStartTime |
( |
| ) |
const |
|
virtual |
gets the start time in seconds.
◆ SetStartTime()
| virtual void HephAudio::LinearFadeIn::SetStartTime |
( |
double | startTime | ) |
|
|
virtual |
sets the start time.
- Parameters
-
| startTime | time, in seconds, of the first audio frame the effect will be applied to. |
◆ 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. |
◆ 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 audio data which will be processed. |
| outputBuffer | contains the processed audio 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.
◆ startTime
| double HephAudio::LinearFadeIn::startTime |
|
protected |
time, in seconds, of the first audio frame the effect will be applied to.
◆ duration
| double HephAudio::LinearFadeIn::duration |
|
protected |
duration of the fade-in in seconds.
◆ currentIndex
| size_t HephAudio::LinearFadeIn::currentIndex |
|
protected |
for real-time processing.