7 #ifndef CAFU_SOUNDSYS_MP3_STREAM_HPP_INCLUDED
8 #define CAFU_SOUNDSYS_MP3_STREAM_HPP_INCLUDED
10 #include "SoundStream.hpp"
13 struct mpg123_handle_struct;
14 typedef struct mpg123_handle_struct mpg123_handle;
15 namespace cf {
namespace FileSys {
class InFileI; } }
34 int Read(
unsigned char* Buffer,
unsigned int Size);
42 mpg123_handle* StreamHandle;
MP3StreamT(const std::string &FileName)
The constructor.
Definition: MP3Stream.cpp:87
unsigned int GetChannels()
Returns the number of channels in the current stream.
Definition: MP3Stream.cpp:211
Represents an MP3 stream.
Definition: MP3Stream.hpp:21
unsigned int GetRate()
Get the sampling rate of this stream.
Definition: MP3Stream.cpp:217
int Read(unsigned char *Buffer, unsigned int Size)
Reads an amount of bytes from the stream and writes them into the buffer.
Definition: MP3Stream.cpp:167
Represents a 16 Bit encoded mono or stereo raw PCM data stream.
Definition: SoundStream.hpp:14
~MP3StreamT()
Destructor.
Definition: MP3Stream.cpp:149
bool Rewind()
Sets the stream back to the beginning.
Definition: MP3Stream.cpp:189