Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | List of all members
LxS::Audio::OggDataSource Class Reference

class for reading and decoding OGG/Vorbis stream More...

#include <oggdatasource.hpp>

Collaboration diagram for LxS::Audio::OggDataSource:
Collaboration graph

Public Member Functions

 OggDataSource (const std::string &pathname)
 load file given name
 
void Open (const std::string &pathname)
 open file given name
 
void Close ()
 close (don't do it before finished; file is never read as a whole
 
int GetNumChannels ()
 mono or stereo
 
size_t GetFrequency ()
 sampling freq
 
OggVorbis_File * GetVF ()
 get OggVorbis_File representation
 
bool Finished ()
 if offset points to end; i.e. whole file is decoded;
 
size_t Decode (char *target_buffer, size_t buffer_size)
 attempt to decode given amount of bytes
 

Detailed Description

class for reading and decoding OGG/Vorbis stream


The documentation for this class was generated from the following files: