ASPiK SDK
Loading...
Searching...
No Matches
AudioDelay Class Reference

The AudioDelay object implements a stereo audio delay with multiple delay algorithms. More...

#include <fxobjects.h>

Inheritance diagram for AudioDelay:
IAudioSignalProcessor

Public Member Functions

virtual bool reset (double _sampleRate)
 
virtual double processAudioSample (double xn)
 
virtual bool canProcessAudioFrame ()
 
virtual bool processAudioFrame (const float *inputFrame, float *outputFrame, uint32_t inputChannels, uint32_t outputChannels)
 
AudioDelayParameters getParameters ()
 
void setParameters (AudioDelayParameters _parameters)
 
void createDelayBuffers (double _sampleRate, double _bufferLength_mSec)
 
- 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)
 

Detailed Description

The AudioDelay object implements a stereo audio delay with multiple delay algorithms.

Audio I/O:

  • Processes mono input to mono output OR stereo output.

Control I/F:

Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2018 / 09 / 7

Member Function Documentation

◆ canProcessAudioFrame()

virtual bool AudioDelay::canProcessAudioFrame ( )
inlinevirtual

return true: this object can also process frames

Implements IAudioSignalProcessor.

◆ createDelayBuffers()

void AudioDelay::createDelayBuffers ( double  _sampleRate,
double  _bufferLength_mSec 
)
inline

creation function

◆ getParameters()

AudioDelayParameters AudioDelay::getParameters ( )
inline

get parameters: note use of custom structure for passing param data

Returns
AudioDelayParameters custom data structure

◆ processAudioFrame()

virtual bool AudioDelay::processAudioFrame ( const float *  inputFrame,
float *  outputFrame,
uint32_t  inputChannels,
uint32_t  outputChannels 
)
inlinevirtual

process STEREO audio delay in frames

Reimplemented from IAudioSignalProcessor.

◆ processAudioSample()

virtual double AudioDelay::processAudioSample ( double  xn)
inlinevirtual

process MONO audio delay

Parameters
xninput
Returns
the processed sample

Implements IAudioSignalProcessor.

◆ reset()

virtual bool AudioDelay::reset ( double  _sampleRate)
inlinevirtual

reset members to initialized state

Implements IAudioSignalProcessor.

◆ setParameters()

void AudioDelay::setParameters ( AudioDelayParameters  _parameters)
inline

set parameters: note use of custom structure for passing param data

Parameters
AudioDelayParameterscustom data structure

The documentation for this class was generated from the following file: