Audio Effects Framework
|
audio effect class for reverb More...
#include <AudioEffectReverb.h>
Public Member Functions | |
CAudioEffectReverb () | |
CAudioEffectReverb (float fSampleRateInHz, int iNumChannels, float fMaxDelayInSec=5.f, EffectParam_t params[]=NULL, float values[]=NULL, int iNumParams=0, float filterDelaysInSec[]=NULL) | |
~CAudioEffectReverb () | |
Error_t | init (float fSampleRateInHz, int iNumChannels, float fMaxDelayInSec=5.f, EffectParam_t params[]=NULL, float values[]=NULL, int iNumParams=0, float filterDelaysInSec[]=NULL) |
Error_t | reset () |
Error_t | setParam (EffectParam_t eParam, float fValue) |
float | getParam (EffectParam_t eParam) |
Error_t | setFilterDelays (float fValues[], int iNumFilters) |
Error_t | process (float **ppfInputBuffer, float **ppfOutputBuffer, int iNumberOfFrames) |
Public Member Functions inherited from CAudioEffect | |
CAudioEffect () | |
~CAudioEffect () | |
Effect_t | getEffectType () |
Additional Inherited Members | |
Public Types inherited from CAudioEffect | |
enum | EffectParam_t { kParamGain, kParamPan, kParamDelayInSecs, kParamFeedback, kParamModRateInHz, kParamModWidthInSecs, kParamTremoloAmount, kParamCenterFrequency, kParamQ, kParamThreshold, kParamSlope, kParamDryWetMix, kParamNumFilters, kParamFilterGains, kParamFilterDelays } |
Protected Attributes inherited from CAudioEffect | |
bool | m_bIsInitialized |
true if initialized More... | |
Effect_t | m_eEffectType |
audio effect type More... | |
float | m_fSampleRateInHz |
sample rate in Hz More... | |
int | m_iNumChannels |
number of channels More... | |
audio effect class for reverb
CAudioEffectReverb::CAudioEffectReverb | ( | ) |
CAudioEffectReverb::CAudioEffectReverb | ( | float | fSampleRateInHz, |
int | iNumChannels, | ||
float | fMaxDelayInSec = 5.f , |
||
EffectParam_t | params[] = NULL , |
||
float | values[] = NULL , |
||
int | iNumParams = 0 , |
||
float | filterDelaysInSec[] = NULL |
||
) |
CAudioEffectReverb::~CAudioEffectReverb | ( | ) |
float CAudioEffectReverb::getParam | ( | EffectParam_t | eParam | ) |
return the value of the specified parameter
eParam |
Error_t CAudioEffectReverb::init | ( | float | fSampleRateInHz, |
int | iNumChannels, | ||
float | fMaxDelayInSec = 5.f , |
||
EffectParam_t | params[] = NULL , |
||
float | values[] = NULL , |
||
int | iNumParams = 0 , |
||
float | filterDelaysInSec[] = NULL |
||
) |
initializes a reverb instance
fSampleRateInHz | sample rate in Hz |
iNumChannels | number of audio channels |
fMaxDelayInSec | max delay length in seconds |
params[] | list of parameter types |
values[] | list of parameter values |
iNumParams | number of parameters |
filterDelaysInSec[] | list of filter delay values |
Error_t CAudioEffectReverb::process | ( | float ** | ppfInputBuffer, |
float ** | ppfOutputBuffer, | ||
int | iNumberOfFrames | ||
) |
processes one block of audio
ppfInputBuffer | input buffer [numChannels][iNumberOfFrames] |
ppfOutputBuffer | output buffer [numChannels][iNumberOfFrames] |
iNumberOfFrames | buffer length (per channel) |
Error_t CAudioEffectReverb::reset | ( | ) |
resets the internal variables (requires new call of init)
Error_t CAudioEffectReverb::setFilterDelays | ( | float | fValues[], |
int | iNumFilters | ||
) |
sets delay lengths for filters of reverb
eValue | value of delay lengths for each filter in reverb |
Error_t CAudioEffectReverb::setParam | ( | EffectParam_t | eParam, |
float | fValue | ||
) |
sets a reverb parameter
eParam | what parameter |
fValue | value of the parameter |