Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

audioenvironment.h File Reference

#include "openalpp/audiobase.h"
#include "openalpp/export.h"

Go to the source code of this file.

Namespaces

namespace  openalpp

Enumerations

enum  DistanceModel { None, InverseDistance, InverseDistanceClamped }


Enumeration Type Documentation

enum DistanceModel
 

Enum for setting/getting the current distance model. None means no model is in use, i.e. no attenuation.
InverseDistance:

  • $G=GAIN-20*log_{10}*(1+ROLLOFF*\frac{dist-REFERENCE\_DISTANCE}{REFERENCE\_DISTANCE})$
  • $G=min (G,MAX\_GAIN)$
  • $G=max (G,MIN\_GAIN)$

InverseDistanceClamped:

  • $dist=max (dist,REFERENCE\_DISTANCE)$
  • $dist=min (dist,MAX\_DISTANCE)$
  • And then the calculations in InverseDistance... This is equivalent to the <a href="http://www.iasig.org>IASIG I3DL2 distance model.

In the above calculations, the variables have the following meanings:

  • dist is the distance from the listener to the source.
  • REFERENCE_DISTANCE are the distance at which the listener will experience GAIN. Both are set per source.
  • ROLLOFF is a source specific factor of attenuation. If it's set to one, the InverseDistance model will describe a "physically correct" inverse square behaviour.
  • MIN_GAIN, MAX_GAIN and MAX_DISTANCE are values used for clamping gain and distance, respectively.
Enumeration values:
None 
InverseDistance 
InverseDistanceClamped 


Generated on Wed Mar 23 01:08:44 2005 for openalpp by  doxygen 1.4.0