csl::AirAbsorptionCue Class Reference

Simulates the frequency dependent air absorption using a one pole/zero lowpass filter. More...

#include <DistanceSimulator.h>

Inheritance diagram for csl::AirAbsorptionCue:

csl::DistanceCue

List of all members.

Public Member Functions

 AirAbsorptionCue ()
virtual ~AirAbsorptionCue ()
virtual void compute (float distance)
 Calculate the filter coefficients.
virtual void process (Buffer &aBuffer)
 Process each sample in the buffer, applying the filter.

Protected Attributes

float mBCoeff
float mACoeff [2]
float mPrevOutput
float mPrevInput


Detailed Description

Simulates the frequency dependent air absorption using a one pole/zero lowpass filter.

Constructor & Destructor Documentation

AirAbsorptionCue::AirAbsorptionCue (  ) 

References mPrevInput, and mPrevOutput.

AirAbsorptionCue::~AirAbsorptionCue (  )  [virtual]


Member Function Documentation

void AirAbsorptionCue::compute ( float  distance  )  [virtual]

Calculate the filter coefficients.

Implements csl::DistanceCue.

References CSL_PI, csl::CGestalt::frameRate(), mACoeff, and mBCoeff.

void AirAbsorptionCue::process ( Buffer aBuffer  )  [virtual]

Process each sample in the buffer, applying the filter.

Implements csl::DistanceCue.

References mACoeff, mBCoeff, csl::Buffer::mBuffers, csl::Buffer::mNumFrames, mPrevInput, and mPrevOutput.


Member Data Documentation

float csl::AirAbsorptionCue::mBCoeff [protected]

Referenced by compute(), and process().

float csl::AirAbsorptionCue::mACoeff[2] [protected]

Referenced by compute(), and process().

Referenced by AirAbsorptionCue(), and process().

Referenced by AirAbsorptionCue(), and process().


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

Generated on Thu Sep 17 23:14:18 2009 for CSL by  doxygen 1.5.8