25 void loop(
bool actuallyLoop);
30 bool forceRestart =
false
74 cAudio::IAudioManager* manager
79 struct Implementation;
80 std::unique_ptr<Implementation> m_impl;
void play(bool forceRestart=false)
Starts playing this sound if not already.
Definition: sound_emitter.cpp:92
void setMaxDistance(float distance)
Sets the distance at which attenuation will stop.
Definition: sound_emitter.cpp:155
float getAudioLength()
Returns the length of the audio attached.
Definition: sound_emitter.cpp:174
void pause()
Pauses the audio if playing.
Definition: sound_emitter.cpp:112
void attachToNode(Ogre::SceneNode *node)
Attaches this object to an Ogre SceneNode and makes this move with the node.
Definition: sound_emitter.cpp:187
void stop()
Stops the audio (losing the current spot)
Definition: sound_emitter.cpp:119
Definition: sound_emitter.h:11
void detachFromNode()
Detaches this from a scene node, stops this from moving with the node.
Definition: sound_emitter.cpp:181
Definition: sound_emitter.h:19
void setVolume(float volume)
Sets volume, multiplier default is 1.f.
Definition: sound_emitter.cpp:139
Definition: bullet_ogre_conversion.h:6
void setRolloffFactor(float rolloff)
Sets how fast the sound fades with distance.
Definition: sound_emitter.cpp:147
void disable3D(bool disable)
Disables 3D audio.
Definition: sound_emitter.cpp:126
Definition: debug_drawing.h:8
void startFade(bool fadeIn, float time)
Definition: sound_emitter.cpp:163