7 #ifndef CAFU_SOUNDSYS_SOUND_STREAM_HPP_INCLUDED
8 #define CAFU_SOUNDSYS_SOUND_STREAM_HPP_INCLUDED
27 virtual int Read(
unsigned char* Buffer,
unsigned int Size)=0;
38 virtual unsigned int GetRate()=0;
static SoundStreamT * Create(const std::string &ResName)
Creates a new sound stream for the specified resource.
Definition: SoundStream.cpp:15
virtual int Read(unsigned char *Buffer, unsigned int Size)=0
Reads an amount of bytes from the stream and writes them into the buffer.
virtual unsigned int GetRate()=0
Get the sampling rate of this stream.
virtual bool Rewind()=0
Sets the stream back to the beginning.
Represents a 16 Bit encoded mono or stereo raw PCM data stream.
Definition: SoundStream.hpp:14
virtual unsigned int GetChannels()=0
Returns the number of channels in the current stream.
virtual ~SoundStreamT()
Virtual destructor to make sure the destructor of the derived class is called.
Definition: SoundStream.hpp:41