C4 Engine Terathon Software C4 Engine API Documentation

• Sound Manager

API Links
Developer Links

class SoundMgr

Defined in:  C4Sound.h
The Sound Manager class.
Definition

class SoundMgr : public Manager<SoundMgr>

Member Functions
SoundMgr::GetMasterVolume Returns the master volume that is applied to all sounds.
SoundMgr::SetMasterVolume Sets the master volume that is applied to all sounds.
SoundMgr::GetGlobalSoundSpeed Returns the global speed of sound.
SoundMgr::SetGlobalSoundSpeed Sets the global speed of sound.
SoundMgr::GetListenerTransformable Returns the listener's 3D transform.
SoundMgr::SetListenerTransformable Sets the listener's 3D transform.
SoundMgr::GetListenerVelocity Returns the listener's 3D velocity.
SoundMgr::SetListenerVelocity Sets the listener's 3D velocity.
 
SoundMgr::StopAllSounds Stops all sounds which are currently playing.
SoundMgr::PauseAllSounds Pauses all sounds which are currently playing.
SoundMgr::ResumeAllSounds Resumes all sounds which are currently paused.
 
SoundMgr::RegisterSoundGroup Registers a sound group with the Sound Manager.
SoundMgr::GetFirstSoundGroup Returns the first registered sound group.
SoundMgr::FindSoundGroup Finds a registered sound group.
SoundMgr::GetDefaultSoundGroup Returns the default sound group.
SoundMgr::SetDefaultSoundGroup Returns the default sound group.
Description
The SoundMgr class encapsulates the sound and music functionality of the C4 Engine. The single instance of the Sound Manager is constructed during an application's initialization and destroyed at termination.

The Sound Manager's member functions are accessed through the global pointer TheSoundMgr.
See Also
Sound