7 #ifndef CAFU_OGG_VORBIS_STREAM_HPP_INCLUDED
8 #define CAFU_OGG_VORBIS_STREAM_HPP_INCLUDED
10 #include "SoundStream.hpp"
12 #if defined(_WIN32) && defined(_MSC_VER)
14 #pragma warning(disable:4244)
16 #define OV_EXCLUDE_STATIC_CALLBACKS
17 #include "vorbis/vorbisfile.h"
18 #if defined(_WIN32) && defined(_MSC_VER)
19 #pragma warning(error:4244)
23 namespace cf {
namespace FileSys {
class InFileI; } }
43 int Read(
unsigned char* Buffer,
unsigned int Size);
51 OggVorbis_File StreamHandle;
53 vorbis_info* StreamInfo;
Represents an Ogg Vorbis stream.
Definition: OggVorbisStream.hpp:30
unsigned int GetChannels()
Returns the number of channels in the current stream.
Definition: OggVorbisStream.cpp:160
int Read(unsigned char *Buffer, unsigned int Size)
Reads an amount of bytes from the stream and writes them into the buffer.
Definition: OggVorbisStream.cpp:104
bool Rewind()
Sets the stream back to the beginning.
Definition: OggVorbisStream.cpp:146
unsigned int GetRate()
Get the sampling rate of this stream.
Definition: OggVorbisStream.cpp:168
~OggVorbisStreamT()
Destructor.
Definition: OggVorbisStream.cpp:96
Represents a 16 Bit encoded mono or stereo raw PCM data stream.
Definition: SoundStream.hpp:14
OggVorbisStreamT(const std::string &FileName)
The constructor.
Definition: OggVorbisStream.cpp:61