Gorgon Game Engine
Environment Class Reference

The environment which the audio system works on. More...

Public Member Functions

 Environment ()
 
ListenerGetListener ()
 Returns the current listener object. More...
 
void SetAttuniationFactor (float value)
 Changes the attunation factor, higher values will attunate sound more, causing a faster fall off. More...
 
void SetAuricleAngle (float value)
 Changes the difference of hearing direction cause by the auricles. More...
 
void SetHeadRadius (float value)
 Changes the radius of the head of listener. More...
 
void SetNonBlocked (float value)
 Changes the percent of sound not blocked by the head. This calculation might change in time. More...
 
void SetSpeakerLocation (int index, Geometry::Point3D value)
 Sets the real world location of the speakers. More...
 

Static Public Attributes

static Environment Current
 Currently active environment. More...
 

Detailed Description

The environment which the audio system works on.

Default unit is meters. Current design of enviroment would change. The final design should have replacable environment tied to playback buffers.

Constructor & Destructor Documentation

◆ Environment()

Member Function Documentation

◆ GetListener()

Listener& GetListener ( )

Returns the current listener object.

◆ SetAttuniationFactor()

void SetAttuniationFactor ( float  value)

Changes the attunation factor, higher values will attunate sound more, causing a faster fall off.

◆ SetAuricleAngle()

void SetAuricleAngle ( float  value)

Changes the difference of hearing direction cause by the auricles.

◆ SetHeadRadius()

void SetHeadRadius ( float  value)

Changes the radius of the head of listener.

◆ SetNonBlocked()

void SetNonBlocked ( float  value)

Changes the percent of sound not blocked by the head. This calculation might change in time.

◆ SetSpeakerLocation()

void SetSpeakerLocation ( int  index,
Geometry::Point3D  value 
)

Sets the real world location of the speakers.

References Gorgon::WindowManager::init().

Member Data Documentation

◆ Current

Environment Current
static

Currently active environment.


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