7 #ifndef CAFU_SOUND_SYS_IMPL_HPP_INCLUDED
8 #define CAFU_SOUND_SYS_IMPL_HPP_INCLUDED
10 #include "OpenALIncl.hpp"
11 #include "MixerTrackMan.hpp"
12 #include "../SoundSys.hpp"
13 #include "Templates/Array.hpp"
58 ALCcontext* m_Context;
void Release()
Releases the sound system and removes all sound data from memory.
Definition: SoundSysImpl.cpp:159
This class efficiently manages audio buffers by employing resource sharing whenever possible...
Definition: BufferManager.hpp:20
void DeleteSound(SoundI *Sound)
Deletes a previously created sound object.
Definition: SoundSysImpl.cpp:241
OpenAL implementation of the sound system.
Definition: SoundSysImpl.hpp:22
This is an interface to the sound system.
Definition: SoundSys.hpp:19
SoundI * CreateSound3D(const SoundShaderT *SoundShader)
Creates a 3 dimensional sound object using the properties of the passed sound shader.
Definition: SoundSysImpl.cpp:220
void SetMasterVolume(float Volume)
Sets the master volume for this sound system.
Definition: SoundSysImpl.cpp:264
static SoundSysImplT & GetInstance()
Creates an instance of the OpenAL sound system.
Definition: SoundSysImpl.cpp:19
This class represents a sound.
Definition: Sound.hpp:15
The mixer track manager manages the limited mixer tracks that are needed to playback a sound object...
Definition: MixerTrackMan.hpp:17
void Update()
Upates all channels that are currently being played according to the properties of their sound object...
Definition: SoundSysImpl.cpp:285
SoundI * CreateSound2D(const SoundShaderT *SoundShader)
Creates a 2 dimensional sound object using the properties of the passed sound shader.
Definition: SoundSysImpl.cpp:199
Represents a 16 Bit encoded mono or stereo raw PCM data stream.
Definition: SoundStream.hpp:14
float GetMasterVolume()
Gets the master volume currently set for this sound system.
Definition: SoundSysImpl.cpp:275
bool PlaySound(const SoundI *Sound)
Plays a sound on a channel.
Definition: SoundSysImpl.cpp:247
void UpdateListener(const Vector3dT &Position, const Vector3dT &Velocity, const Vector3fT &OrientationForward, const Vector3fT &OrientationUp)
Updates the position, velocity and orientation of the listener.
Definition: SoundSysImpl.cpp:292
int GetPreferenceNr()
Returns the preference number for this sound system, so calling code can decide which sound system to...
Definition: SoundSysImpl.cpp:193
bool Initialize()
Initializes the sound system.
Definition: SoundSysImpl.cpp:43
bool IsSupported()
Determine if the sound system is supported on this platform.
Definition: SoundSysImpl.cpp:179
A SoundShader is a description of a sound with various properties.
Definition: SoundShader.hpp:19