CSL 5.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Attributes
csl::IntensityAttenuationCue Class Reference

Sound attenuation due to increasing distance. This "Base" Class uses the inverse square law. Subclass for other methods. More...

`#include <DistanceSimulator.h>`

Inheritance diagram for csl::IntensityAttenuationCue:

List of all members.

## Public Member Functions
| IntensityAttenuationCue ()
virtual | ~IntensityAttenuationCue ()
virtual void | compute (float distance)
virtual void | process (Buffer &aBuffer)

## Protected Attributes
float | mGain

## Detailed Description

Sound attenuation due to increasing distance. This "Base" Class uses the inverse square law. Subclass for other methods.

Definition at line 60 of file DistanceSimulator.h.

## Constructor & Destructor Documentation

csl::IntensityAttenuationCue::IntensityAttenuationCue | ( |  | ) |
| inline

Definition at line 62 of file DistanceSimulator.h.

virtual csl::IntensityAttenuationCue::~IntensityAttenuationCue | ( |  | ) |
| inline virtual

Definition at line 63 of file DistanceSimulator.h.

## Member Function Documentation

void IntensityAttenuationCue::compute | ( | float | distance | ) |
| virtual

Implements csl::DistanceCue.

Definition at line 63 of file DistanceSimulator.cpp.

References mGain.

void IntensityAttenuationCue::process | ( | Buffer & | aBuffer | ) |
| virtual

Implements csl::DistanceCue.

Definition at line 67 of file DistanceSimulator.cpp.

References csl::Buffer::buffer(), mGain, and csl::Buffer::mNumFrames.

## Member Data Documentation

float csl::IntensityAttenuationCue::mGain
| protected

Definition at line 69 of file DistanceSimulator.h.

Referenced by compute(), and process().

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

- CSL/Spatializers/DistanceSimulator.h
- CSL/Spatializers/DistanceSimulator.cpp