22 #ifndef FIFE_SOUNDMANAGER_H
23 #define FIFE_SOUNDMANAGER_H
80 alListenerf(AL_GAIN, vol);
93 alListenerf(AL_GAIN, 0);
105 alListener3f(AL_POSITION, x, y, z);
111 ALfloat vec[6] = { x, y, z, 0.0, 0.0, 1.0};
112 alListenerfv(AL_ORIENTATION, vec);
void unmute()
Unmutes to volume before mute() was called.
SoundEmitter * createEmitter()
Returns a pointer to an allocated emitter-instance.
bool isActive() const
Returns true if audio module is active.
float getVolume() const
Return the Master Volume.
void init()
Initializes the audio system.
void setVolume(float vol)
Sets the Master Volume.
void setListenerPosition(float x, float y, float z)
Sets the position of the listener (alter ego).
The class for playing audio files.
void setListenerOrientation(float x, float y, float z)
Sets the orientation of the listener (alter ego).
std::vector< SoundEmitter * > m_emittervec
void setListenerVelocity(float x, float y, float z)
Sets the velocity of the listener (alter ego).
ALCcontext * getContext() const
Returns an openAL context.
void releaseEmitter(uint32_t emitterid)
Release an emitter-instance given by emitter-id.
SoundEmitter * getEmitter(uint32_t emitterid) const
Returns a pointer to an emitter-instance given by emitterid.