ASPiK SDK
|
The ImpulseConvolver object implements a linear conovlver. NOTE: compile in Release mode or you may experice stuttering, glitching or other sample-drop activity. More...
#include <fxobjects.h>
Public Member Functions | |
virtual bool | reset (double _sampleRate) |
virtual double | processAudioSample (double xn) |
virtual bool | canProcessAudioFrame () |
void | init (unsigned int lengthPowerOfTwo) |
void | setImpulseResponse (double *irArray, unsigned int lengthPowerOfTwo) |
Public Member Functions inherited from IAudioSignalProcessor | |
virtual bool | reset (double _sampleRate)=0 |
virtual double | processAudioSample (double xn)=0 |
virtual bool | canProcessAudioFrame ()=0 |
virtual void | setSampleRate (double _sampleRate) |
virtual void | enableAuxInput (bool enableAuxInput) |
virtual double | processAuxInputAudioSample (double xn) |
virtual bool | processAudioFrame (const float *inputFrame, float *outputFrame, uint32_t inputChannels, uint32_t outputChannels) |
Protected Attributes | |
CircularBuffer< double > | signalBuffer |
circulat buffer for the signal | |
LinearBuffer< double > | irBuffer |
linear buffer for the IR | |
unsigned int | length = 0 |
length of convolution (buffer) | |
The ImpulseConvolver object implements a linear conovlver. NOTE: compile in Release mode or you may experice stuttering, glitching or other sample-drop activity.
Audio I/O:
Control I/F:
|
inlinevirtual |
return false: this object only processes samples
Implements IAudioSignalProcessor.
|
inline |
create the buffer based on the exact power of 2
|
inlinevirtual |
process one input - note this is CPU intensive as it performs simple linear convolution
xn | input |
Implements IAudioSignalProcessor.
|
inlinevirtual |
reset members to initialized state
Implements IAudioSignalProcessor.
|
inline |
set the impulse response