|
|
| SoundEmitter (cAudio::IAudioSource *audioObject) |
| |
|
void | loop (bool actuallyLoop) |
| |
|
void | play (bool forceRestart=false) |
| | Starts playing this sound if not already.
|
| |
|
void | pause () |
| | Pauses the audio if playing.
|
| |
|
void | stop () |
| | Stops the audio (losing the current spot)
|
| |
|
void | disable3D (bool disable) |
| | Disables 3D audio.
|
| |
|
void | setVolume (float volume) |
| | Sets volume, multiplier default is 1.f.
|
| |
|
void | setRolloffFactor (float rolloff) |
| | Sets how fast the sound fades with distance.
|
| |
|
void | setMaxDistance (float distance) |
| | Sets the distance at which attenuation will stop.
|
| |
| void | startFade (bool fadeIn, float time) |
| |
| float | getAudioLength () |
| | Returns the length of the audio attached. More...
|
| |
| void | detachFromNode () |
| | Detaches this from a scene node, stops this from moving with the node. More...
|
| |
| void | attachToNode (Ogre::SceneNode *node) |
| | Attaches this object to an Ogre SceneNode and makes this move with the node. More...
|
| |
|
void | destroyInternal (cAudio::IAudioManager *manager) |
| |
| void SoundEmitter::attachToNode |
( |
Ogre::SceneNode * |
node | ) |
|
Attaches this object to an Ogre SceneNode and makes this move with the node.
| void SoundEmitter::detachFromNode |
( |
| ) |
|
Detaches this from a scene node, stops this from moving with the node.
| float SoundEmitter::getAudioLength |
( |
| ) |
|
Returns the length of the audio attached.
- Note
- If the length cannot be determined for some reason returns a negative value
| void SoundEmitter::startFade |
( |
bool |
fadeIn, |
|
|
float |
time |
|
) |
| |
- Note
- Not implemented, don't use
The documentation for this class was generated from the following files:
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/sound/sound_emitter.h
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/sound/sound_emitter.cpp