7 #ifndef CAFU_SOUNDSYS_STATIC_BUFFER_HPP_INCLUDED
8 #define CAFU_SOUNDSYS_STATIC_BUFFER_HPP_INCLUDED
A mixer track represents/encapsulates/abstracs an OpenAL sound source.
Definition: MixerTrack.hpp:22
void Update()
Updates the buffer.
Definition: StaticBuffer.cpp:96
A StaticBufferT is a BufferT specialization for audio data from a file whose contents fits entirely i...
Definition: StaticBuffer.hpp:15
bool CanShare() const
Returns whether this buffer can be attached to multiple mixer tracks (resource sharing).
Definition: StaticBuffer.cpp:90
bool AttachToMixerTrack(MixerTrackT *MixerTrack)
Attaches the buffer to a mixer track, so the mixer track can play this buffer.
Definition: StaticBuffer.cpp:102
unsigned int GetChannels() const
Returns the number of audio channels in this buffer (1 is mono, 2 is stereo).
Definition: StaticBuffer.cpp:81
StaticBufferT(const std::string &FileName, bool ForceMono)
The constructor.
Definition: StaticBuffer.cpp:19
A BufferT encapsulates an audio resource such as a file or a capture device.
Definition: Buffer.hpp:22
~StaticBufferT()
The destructor.
Definition: StaticBuffer.cpp:69
bool DetachFromMixerTrack(MixerTrackT *MixerTrack)
Detaches the buffer from a mixer track.
Definition: StaticBuffer.cpp:113