9 #ifndef _TheoraDataSource_h
10 #define _TheoraDataSource_h
32 virtual int read(
void* output,
int nBytes) = 0;
34 virtual std::string repr() = 0;
36 virtual void seek(uint64_t byte_index) = 0;
38 virtual uint64_t size() = 0;
40 virtual uint64_t tell() = 0;
50 std::string mFilename;
58 int read(
void* output,
int nBytes);
59 void seek(uint64_t byte_index);
60 std::string
repr() {
return mFilename; }
74 std::string mFilename;
75 uint64_t mSize, mReadPointer;
82 int read(
void* output,
int nBytes);
83 void seek(uint64_t byte_index);
84 std::string
repr() {
return "MEM:"+mFilename; }
std::string repr()
returns a string representation of the DataSource, eg 'File: source.ogg'
Definition: TheoraDataSource.h:84
virtual int read(void *output, int nBytes)=0
std::string repr()
returns a string representation of the DataSource, eg 'File: source.ogg'
Definition: TheoraDataSource.h:60
std::string getFilename()
Definition: TheoraDataSource.h:64
virtual void seek(uint64_t byte_index)=0
position the source pointer to byte_index from the start of the source
Definition: TheoraDataSource.h:72
Definition: TheoraDataSource.h:47
std::string getFilename()
Definition: TheoraDataSource.h:87
virtual uint64_t tell()=0
return the current position of the source pointer
#define TheoraPlayerExport
Definition: TheoraExport.h:25
virtual uint64_t size()=0
return the size of the stream in bytes
Definition: TheoraDataSource.h:23