Theora Playback Library  1.0.0
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
TheoraDataSource Class Referenceabstract
Inheritance diagram for TheoraDataSource:
TheoraFileDataSource TheoraMemoryFileDataSource

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...
 

Detailed Description

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

Constructor & Destructor Documentation

virtual TheoraDataSource::~TheoraDataSource ( )
virtual

Member Function Documentation

virtual int TheoraDataSource::read ( void *  output,
int  nBytes 
)
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.

virtual std::string TheoraDataSource::repr ( )
pure virtual

returns a string representation of the DataSource, eg 'File: source.ogg'

Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.

virtual void TheoraDataSource::seek ( unsigned long  byte_index)
pure virtual

position the source pointer to byte_index from the start of the source

Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.

virtual unsigned long TheoraDataSource::size ( )
pure virtual

return the size of the stream in bytes

Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.

virtual unsigned long TheoraDataSource::tell ( )
pure virtual

return the current position of the source pointer

Implemented in TheoraMemoryFileDataSource, and TheoraFileDataSource.


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