![]() |
Theora Playback Library
1.0.0
|
Public Member Functions | |
virtual | ~TheoraDataSource () |
virtual int | read (void *output, int nBytes)=0 |
virtual std::string | repr ()=0 |
returns a string representation of the DataSource, eg 'File: source.ogg' More... | |
virtual void | seek (unsigned long byte_index)=0 |
position the source pointer to byte_index from the start of the source More... | |
virtual unsigned long | size ()=0 |
return the size of the stream in bytes More... | |
virtual unsigned long | tell ()=0 |
return the current position of the source pointer More... | |
This is a simple class that provides abstracted data feeding. You can use the TheoraFileDataSource for regular file playback or you can implement your own internet streaming solution, or a class that uses encrypted datafiles etc. The sky is the limit
|
virtual |
|
pure virtual |
Reads nBytes bytes from data source and returns number of read bytes. if function returns less bytes then nBytes, the system assumes EOF is reached.
Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.
|
pure virtual |
returns a string representation of the DataSource, eg 'File: source.ogg'
Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.
|
pure virtual |
position the source pointer to byte_index from the start of the source
Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.
|
pure virtual |
return the size of the stream in bytes
Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.
|
pure virtual |
return the current position of the source pointer
Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.