csl::DistanceSimulator Class Reference

#include <DistanceSimulator.h>

Inheritance diagram for csl::DistanceSimulator:

csl::SpatialSource csl::UnitGenerator csl::Scalable csl::Model csl::Controllable

List of all members.

Public Member Functions

 DistanceSimulator (UnitGenerator &source)
 DistanceSimulator (SpatialSource &source)
 ~DistanceSimulator ()
virtual void nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException)
virtual bool positionChanged ()
 Returns wether the sound source position changed since last block call.

Protected Attributes

IntensityAttenuationCuemIntensityCue
AirAbsorptionCuemAirAbsorptionCue


Detailed Description

Only handles single sound sources because objects have different positions. Two objects can't ocuppy the same position, and usually distance cues go before the panning, so handling multiple sources by one Distance simulator, would producde a multi-channel object, where the positions aren't dynamic anymore.

Constructor & Destructor Documentation

DistanceSimulator::DistanceSimulator ( UnitGenerator source  ) 

DistanceSimulator::DistanceSimulator ( SpatialSource source  ) 

DistanceSimulator::~DistanceSimulator (  ) 

References mAirAbsorptionCue, and mIntensityCue.


Member Function Documentation

void DistanceSimulator::nextBuffer ( Buffer outputBuffer,
unsigned  outBufNum 
) throw (CException) [virtual]

really compute the next buffer given an offset base channel; this is called by nextBuffer, possibly multiple times

Reimplemented from csl::SpatialSource.

References CSL_INPUT, csl::Port::mUGen, and csl::UnitGenerator::nextBuffer().

bool DistanceSimulator::positionChanged (  )  [virtual]

Returns wether the sound source position changed since last block call.

Returns whether the sound source position changed since last block call.

Reimplemented from csl::SpatialSource.

References CSL_INPUT, and csl::Controllable::mInputs.


Member Data Documentation


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