MPMA Framework 0.4
Namespaces | Functions
Listener.cpp File Reference

Controls the sound listener, which all sounds are relative to. More...

Namespaces

namespace  AUDIO
 

Sound playback and streaming.


Functions

void AUDIO::SetGlobalVolume (float value)
 Sets the global sound volume level that affects all sounds. Value can be from 0 being silence to 1 being normal. Default is 1.
void AUDIO::SetListenerPosition (float x, float y, float z)
 Sets the position the listener is at.
void AUDIO::SetListenerFacing (float x, float y, float z)
 Sets the direction the listener is facing.
void AUDIO::SetListenerUp (float x, float y, float z)
 Sets the direction that is up from the listener's head.
void AUDIO::SetListenerVelocity (float x, float y, float z)
 Sets the speed and direction that listener is moving. (used for doppler)
void AUDIO::SetDopplerFactor (float value)
 A scalar(>=0) that is can be used to emphasize or reduce the doppler effect globally. Default is 1. Setting to 0 disables doppler.
void AUDIO::SetSpeedOfSound (float value)
 Sets the speed of sound used for doppler calculations. Must be >0. Default is 343.3.
void AUDIO::SetDistanceModel (DistanceModel distanceModel)
 Sets the formula used to calculate how distance affects the volume of sounds in 3D space.

Detailed Description

Controls the sound listener, which all sounds are relative to.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends