Audio Effects Framework
|
audio effect class for distortion More...
#include <AudioEffectDistortion.h>
Public Member Functions | |
CAudioEffectDistortion () | |
CAudioEffectDistortion (float fSampleRateInHz, int iNumChannels, EffectParam_t params[]=NULL, float values[]=NULL, int iNumParams=0) | |
~CAudioEffectDistortion () | |
Error_t | init (float fSampleRateInHz, int iNumChannels, EffectParam_t params[]=NULL, float values[]=NULL, int iNumParams=0) |
Error_t | reset () |
Error_t | setParam (EffectParam_t eParam, float fValue) |
float | getParam (EffectParam_t eParam) |
Error_t | process (float **ppfInputBuffer, float **ppfOutputBuffer, int iNumberOfFrames) |
Public Member Functions inherited from CAudioEffect | |
CAudioEffect () | |
~CAudioEffect () | |
Effect_t | getEffectType () |
Protected Attributes | |
float | m_fGain |
amount of distortion, >0 More... | |
float | m_fDryWetMix |
mix of original and distorted sound, 1=only distorted, 0=only dry More... | |
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... | |
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 } |
audio effect class for distortion
CAudioEffectDistortion::CAudioEffectDistortion | ( | ) |
CAudioEffectDistortion::CAudioEffectDistortion | ( | float | fSampleRateInHz, |
int | iNumChannels, | ||
EffectParam_t | params[] = NULL , |
||
float | values[] = NULL , |
||
int | iNumParams = 0 |
||
) |
CAudioEffectDistortion::~CAudioEffectDistortion | ( | ) |
float CAudioEffectDistortion::getParam | ( | EffectParam_t | eParam | ) |
return the value of the specified parameter
eParam |
Error_t CAudioEffectDistortion::init | ( | float | fSampleRateInHz, |
int | iNumChannels, | ||
EffectParam_t | params[] = NULL , |
||
float | values[] = NULL , |
||
int | iNumParams = 0 |
||
) |
initializes a distortion instance
fSampleRateInHz | sample rate in Hz |
iNumChannels | number of audio channels |
params[] | list of parameter types |
values[] | list of parameter values |
iNumParams | number of parameters |
Error_t CAudioEffectDistortion::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 CAudioEffectDistortion::reset | ( | ) |
resets the internal variables (requires new call of init)
Error_t CAudioEffectDistortion::setParam | ( | EffectParam_t | eParam, |
float | fValue | ||
) |
sets a distortion parameter
eParam | what parameter |
fValue | value of the parameter |
|
protected |
mix of original and distorted sound, 1=only distorted, 0=only dry
|
protected |
amount of distortion, >0