List of all members.
Public Member Functions
|SoundInstance (ALuint buffer)|
|Create associating with an OpenAL buffer object's name. |
|Return the buffer name given on creation. |
|return true if an ALSoundSource is being used. |
|unsigned int||get_index ()|
|Get the index value passed when assigned. |
|void||assign (ALSoundSource &source, unsigned int index)|
|Use an ALSoundSource. |
|Stop using an ALSoundSource. |
|void||set_gain (ALfloat gain)|
|Set how loud the sound should be played. |
|return the gain set by set_gain() |
|void||set_pitch (ALfloat pitch)|
|Set the scale for the pitch of the sound (1 is normal). |
|void||set_position (btVector3 position)|
|Set the position of the sound relative to the viewer. |
|void||set_looping (bool looping=true)|
|Set whether the sound should repeat continuosly. |
|Return true iff the sound should repeat continuosly. |
|Play the sound. |
|Stop the sound from playing. |
|Return true iff the sound is playing. |
|Update the assigned ALSoundSource. |
May or may not be actually played. Only the most audioable sounds are fed into OpenAL. The less audiable ones are ignored for performance reasons.
Definition at line 218 of file Audio.h.
|void Engine::SoundInstance::assign||(||ALSoundSource &||source,|
|unsigned int Engine::SoundInstance::get_index||(||)|
|void Engine::SoundInstance::set_looping||(||bool|| looping =
Set whether the sound should repeat continuosly.
A looping sound source can be assigned an ALSoundSource at any time. A sound source which doesn't loop that could not be assigned an ALSoundSource will never be heard. The looping value shouldn't be changed while playing and attached to a ALSoundSource. You can call this function with the previous state again though, it will just do nothing.
|unsigned int Engine::SoundInstance::m_source_index
Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.