![]() |
Theora Playback Library
1.0.0
|
Public Member Functions | |
TheoraFileDataSource (std::string filename) | |
~TheoraFileDataSource () | |
int | read (void *output, int nBytes) |
void | seek (unsigned long byte_index) |
position the source pointer to byte_index from the start of the source More... | |
std::string | repr () |
returns a string representation of the DataSource, eg 'File: source.ogg' More... | |
unsigned long | size () |
return the size of the stream in bytes More... | |
unsigned long | tell () |
return the current position of the source pointer More... | |
std::string | getFilename () |
![]() | |
virtual | ~TheoraDataSource () |
provides standard file IO
TheoraFileDataSource::TheoraFileDataSource | ( | std::string | filename | ) |
TheoraFileDataSource::~TheoraFileDataSource | ( | ) |
|
inline |
|
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.
Implements TheoraDataSource.
|
inlinevirtual |
returns a string representation of the DataSource, eg 'File: source.ogg'
Implements TheoraDataSource.
|
virtual |
position the source pointer to byte_index from the start of the source
Implements TheoraDataSource.
|
virtual |
return the size of the stream in bytes
Implements TheoraDataSource.
|
virtual |
return the current position of the source pointer
Implements TheoraDataSource.