CSL
6.0
|
Simulates the frequency dependent air absorption using a one pole/zero lowpass filter. More...
#include <DistanceSimulator.h>
Public Member Functions | |
AirAbsorptionCue () | |
virtual | ~AirAbsorptionCue () |
virtual void | compute (float distance) |
Calculate the filter coefficients. More... | |
virtual void | process (Buffer &aBuffer) |
Process each sample in the buffer, applying the filter. More... | |
Protected Attributes | |
float | mBCoeff |
float | mACoeff [2] |
float | mPrevOutput |
float | mPrevInput |
Simulates the frequency dependent air absorption using a one pole/zero lowpass filter.
Definition at line 75 of file DistanceSimulator.h.
AirAbsorptionCue::AirAbsorptionCue | ( | ) |
Definition at line 77 of file DistanceSimulator.cpp.
References mPrevInput, and mPrevOutput.
|
virtual |
Definition at line 82 of file DistanceSimulator.cpp.
|
virtual |
Calculate the filter coefficients.
Implements csl::DistanceCue.
Definition at line 86 of file DistanceSimulator.cpp.
References CSL_PI, csl::CGestalt::frameRate(), mACoeff, and mBCoeff.
|
virtual |
Process each sample in the buffer, applying the filter.
Implements csl::DistanceCue.
Definition at line 99 of file DistanceSimulator.cpp.
References csl::Buffer::buffer(), mACoeff, mBCoeff, csl::Buffer::mNumFrames, mPrevInput, and mPrevOutput.
|
protected |
Definition at line 84 of file DistanceSimulator.h.
|
protected |
Definition at line 85 of file DistanceSimulator.h.
|
protected |
Definition at line 86 of file DistanceSimulator.h.
Referenced by AirAbsorptionCue(), and process().
|
protected |
Definition at line 87 of file DistanceSimulator.h.
Referenced by AirAbsorptionCue(), and process().