#include <Audio.h>
Public Member Functions | |
~Audio () | |
void | pause () |
Pause all playing sound effects. | |
void | resume () |
Resume all paused sound effects. | |
bool | get_paused () |
Return the paused state. | |
void | commit () |
Commit all changes to the listeners and sound sources. | |
void | attach_listner (SoundListener *listener) |
Remember a listener. | |
void | attach_source (SoundSource *source) |
void | forget_listener (SoundListener *listener) |
Forget about a listener. | |
void | forget_source (SoundSource *source) |
Forget about a sound source. | |
Static Public Member Functions | |
static Audio & | get_instance () |
Private Member Functions | |
Audio () | |
Private Attributes | |
std::vector< boost::shared_ptr< SoundInstance > > | m_instances |
The playing sound instances for positional audio. | |
std::vector< SoundListener * > | m_listeners |
Listeners Ordered as in m_instances. | |
std::vector< SoundSource * > | m_sources |
SoundSources Ordered as in m_instances. | |
std::vector< boost::shared_ptr< ALSoundSource > > | m_al_sources |
OpenAL sources. | |
ALfloat | m_speed_of_sound |
The speed of sound for doppler calculations. | |
bool | m_paused |
True if all sounds have been paused. |
Definition at line 31 of file Audio.h.
void Engine::Audio::attach_listner | ( | SoundListener * | listener | ) |
void Engine::Audio::attach_source | ( | SoundSource * | source | ) |
void Engine::Audio::commit | ( | ) |
void Engine::Audio::forget_listener | ( | SoundListener * | listener | ) |
void Engine::Audio::forget_source | ( | SoundSource * | source | ) |
bool Engine::Audio::get_paused | ( | ) |
void Engine::Audio::pause | ( | ) |
void Engine::Audio::resume | ( | ) |
std::vector<boost::shared_ptr<ALSoundSource> > Engine::Audio::m_al_sources [private] |
std::vector<boost::shared_ptr<SoundInstance> > Engine::Audio::m_instances [private] |
The playing sound instances for positional audio.
Sorted by listner then SoundSource, since the listners are created and destroyed less often, and they can cause the most moves when created or destroyed.
std::vector<SoundListener *> Engine::Audio::m_listeners [private] |
bool Engine::Audio::m_paused [private] |
std::vector<SoundSource *> Engine::Audio::m_sources [private] |
ALfloat Engine::Audio::m_speed_of_sound [private] |
Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.