7 #ifndef CAFU_SOUNDSYS_MIXER_TRACK_HPP_INCLUDED
8 #define CAFU_SOUNDSYS_MIXER_TRACK_HPP_INCLUDED
10 #include "OpenALIncl.hpp"
77 ALuint m_SourceHandle;
bool IsUsed()
Checks if this mixer track is currently used the sound currently attached to it.
Definition: MixerTrack.cpp:105
A mixer track represents/encapsulates/abstracs an OpenAL sound source.
Definition: MixerTrack.hpp:22
MixerTrackT()
The constructor. Throws an exception of type std::runtime_error on failure.
Definition: MixerTrack.cpp:15
OpenAL implementation of the SoundI interface.
Definition: SoundImpl.hpp:21
bool Play(SoundImplT *Sound)
Plays a sound.
Definition: MixerTrack.cpp:38
void Update()
Updates the mixer track according to the attached sound.
Definition: MixerTrack.cpp:124
void Resume()
Resumes a previously paused sound.
Definition: MixerTrack.cpp:68
void Pause()
Pauses the currently played sound.
Definition: MixerTrack.cpp:59
unsigned int GetPriority()
Returns information about the priority of the currently played sound object.
Definition: MixerTrack.cpp:116
void StopAndDetach()
Stops the currently played sound and detaches it from this mixer track.
Definition: MixerTrack.cpp:77
ALuint GetOpenALSource() const
Returns the handle to the OpenAL "source" that is encapsulated by this mixer track.
Definition: MixerTrack.hpp:68
~MixerTrackT()
The destructor. Stops the sound, detaches, and releases the OpenAL source.
Definition: MixerTrack.cpp:29
bool IsPlaying()
Checks if this mixer track is playing the sound currently attached to it.
Definition: MixerTrack.cpp:93