| HephAudio v3.1.0
    A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS. | 
adds echo to the audio data. More...
#include <Echo.h>
 
  
| Public Member Functions | |
| Echo () | |
| Echo (size_t reflectionCount, double reflectionDelay, double decayFactor, double echoStart, double echoDuration) | |
| virtual | ~Echo ()=default | 
| virtual std::string | Name () const override | 
| virtual void | ResetInternalState () override | 
| virtual void | Process (AudioBuffer &buffer, size_t startIndex, size_t frameCount) override | 
| virtual size_t | GetReflectionCount () const | 
| virtual void | SetReflectionCount (size_t reflectionCount) | 
| virtual double | GetReflectionDelay () const | 
| virtual void | SetReflectionDelay (double reflectionDelay) | 
| virtual double | GetDecayFactor () const | 
| virtual void | SetDecayFactor (double decayFactor) | 
| virtual double | GetEchoStart () const | 
| virtual void | SetEchoStart (double echoStart) | 
| virtual double | GetEchoDuration () const | 
| virtual void | SetEchoDuration (double echoDuration) | 
| virtual void | Process (AudioBuffer &buffer) | 
| virtual void | Process (AudioBuffer &buffer, size_t startIndex) | 
|  Public Member Functions inherited from HephAudio::AudioEffect | |
| virtual | ~AudioEffect ()=default | 
| virtual bool | HasMTSupport () const | 
| virtual bool | HasRTSupport () const | 
| virtual size_t | GetThreadCount () const | 
| virtual void | SetThreadCount (size_t threadCount) | 
| virtual size_t | CalculateRequiredFrameCount (size_t outputFrameCount, const AudioFormatInfo &formatInfo) const | 
| virtual size_t | CalculateOutputFrameCount (size_t inputFrameCount, const AudioFormatInfo &formatInfo) const | 
| virtual size_t | CalculateAdvanceSize (size_t renderFrameCount, const AudioFormatInfo &formatInfo) const | 
| Protected Member Functions | |
| void | ProcessST (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override | 
|  Protected Member Functions inherited from HephAudio::AudioEffect | |
| AudioEffect () | |
| virtual void | ProcessMT (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) | 
| Protected Attributes | |
| size_t | reflectionCount | 
| double | reflectionDelay | 
| double | decayFactor | 
| double | echoStart | 
| double | echoDuration | 
| AudioBuffer | pastSamples | 
| size_t | currentIndex | 
|  Protected Attributes inherited from HephAudio::AudioEffect | |
| size_t | threadCount | 
adds echo to the audio data.
| HephAudio::Echo::Echo | ( | ) | 
creates a new instance and initializes it with default values.
| HephAudio::Echo::Echo | ( | size_t | reflectionCount, | 
| double | reflectionDelay, | ||
| double | decayFactor, | ||
| double | echoStart, | ||
| double | echoDuration ) | 
creates a new instance and initializes it with the provided values.
| reflectionCount | number of times the audio data will be reflected. | 
| reflectionDelay | elapsed time, in seconds, between the start of each reflection. | 
| decayFactor | the factor which echo data will be multiplied by between each reflection. | 
| echoStart | start time, in seconds, of the audio data that will be used as echo. | 
| echoDuration | duration of the audio data, in seconds, that will be used as echo. | 
| 
 | virtualdefault | 
releases the resources and destroys the instance.
| 
 | overridevirtual | 
gets the name of the audio effect.
Implements HephAudio::AudioEffect.
| 
 | overridevirtual | 
resets the variables internally used for processing.
Reimplemented from HephAudio::AudioEffect.
| 
 | overridevirtual | 
Applies the effect.
| 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.
| 
 | virtual | 
gets the reflection count.
| 
 | virtual | 
sets the reflection count.
| reflectionCount | number of times the audio data will be reflected. | 
| 
 | virtual | 
gets the reflection delay.
| 
 | virtual | 
sets the reflection delay.
| reflectionDelay | elapsed time, in seconds, between the start of each reflection. | 
| 
 | virtual | 
gets the decay factor.
| 
 | virtual | 
sets the decay factor.
| decayFactor | the factor which echo data will be multiplied by between each reflection. | 
| 
 | virtual | 
gets the echo start.
| 
 | virtual | 
sets the echo start.
| echoStart | start time, in seconds, of the audio data that will be used as echo. | 
| 
 | virtual | 
gets the echo duration.
| 
 | virtual | 
sets the echo duration.
| echoDuration | duration of the audio data, in seconds, that will be used as echo. | 
| 
 | overrideprotectedvirtual | 
applies the effect using single thread.
| 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.
| 
 | virtual | 
Applies the effect.
| buffer | contains the audio data which will be processed. | 
Reimplemented from HephAudio::AudioEffect.
| 
 | virtual | 
Applies the effect.
| buffer | contains the audio data which will be processed. | 
| startIndex | index of the first audio frame to process. | 
Reimplemented from HephAudio::AudioEffect.
| 
 | protected | 
number of times the audio data will be reflected.
| 
 | protected | 
elapsed time, in seconds, between the start of each reflection.
| 
 | protected | 
the factor which echo data will be multiplied by between each reflection.
| 
 | protected | 
start time, in seconds, of the audio data that will be used as echo.
| 
 | protected | 
duration of the audio data, in seconds, that will be used as echo.
| 
 | protected | 
past samples required for real-time processing.
| 
 | protected | 
for real-time processing.