HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
container for echo effect parameters. More...
#include <EchoInfo.h>
Public Member Functions | |
EchoInfo () | |
EchoInfo (uint32_t reflectionCount, double reflectionDelay_s, double decayFactor, double echoStartPosition, double echoEndPosition) | |
size_t | CalculateAudioBufferFrameCount (const AudioBuffer &buffer) const |
Public Attributes | |
uint32_t | reflectionCount |
double | reflectionDelay_s |
double | decayFactor |
double | echoStartPosition |
double | echoEndPosition |
container for echo effect parameters.
HephAudio::EchoInfo::EchoInfo | ( | ) |
creates a new instance and initializes it with default values.
HephAudio::EchoInfo::EchoInfo | ( | uint32_t | reflectionCount, |
double | reflectionDelay_s, | ||
double | decayFactor, | ||
double | echoStartPosition, | ||
double | echoEndPosition ) |
creates a new instance and initializes it with the provided values.
reflectionCount | number of times the audio data will be reflected (repeated). |
reflectionDelay_s | elapsed time, in seconds, between the start of each reflection. |
decayFactor | multiplication factor of the reflected data. Reflected data will be multiplied by this between each reflection. |
echoStartPosition | start position of the audio data that will be reflected. Should be between 0 and 1. |
echoEndPosition | end position of the audio data that will be reflected. Should be between 0 and 1. |
size_t HephAudio::EchoInfo::CalculateAudioBufferFrameCount | ( | const AudioBuffer & | buffer | ) | const |
calculates the number of frames the buffer will have after applying the echo effect.
uint32_t HephAudio::EchoInfo::reflectionCount |
number of times the audio data will be reflected (repeated).
double HephAudio::EchoInfo::reflectionDelay_s |
elapsed time, in seconds, between the start of each reflection.
double HephAudio::EchoInfo::decayFactor |
multiplication factor of the reflected data. Reflected data will be multiplied by this between each reflection.
double HephAudio::EchoInfo::echoStartPosition |
start position of the audio data that will be reflected. Should be between 0 and 1.
double HephAudio::EchoInfo::echoEndPosition |
end position of the audio data that will be reflected. Should be between 0 and 1.