Interface for data providers in cAudio. More...
#include <IDataSource.h>


Public Member Functions | |
| virtual bool | isValid ()=0 |
| Returns whether the source is valid. | |
| virtual int | getCurrentPos ()=0 |
| Returns the current location in the data stream. | |
| virtual int | getSize ()=0 |
| Returns the total size of the data stream. | |
| virtual int | read (void *output, int size)=0 |
| Reads out a section of the data stream. | |
| virtual bool | seek (int amount, bool relative)=0 |
| Seek to a position in the data stream. | |
Interface for data providers in cAudio.
Definition at line 13 of file IDataSource.h.
| virtual bool cAudio::IDataSource::isValid | ( | ) | [pure virtual] |
Returns whether the source is valid.
Implemented in cAudio::cFileSource, and cAudio::cMemorySource.
| virtual int cAudio::IDataSource::read | ( | void * | output, | |
| int | size | |||
| ) | [pure virtual] |
Reads out a section of the data stream.
| output,: | Pointer to a location to put the read data. | |
| size,: | Size in bytes of the data to read. |
Implemented in cAudio::cFileSource, and cAudio::cMemorySource.
| virtual bool cAudio::IDataSource::seek | ( | int | amount, | |
| bool | relative | |||
| ) | [pure virtual] |
Seek to a position in the data stream.
| amount,: | Amount in bytes to seek to. | |
| relative,: | If true the number of bytes in amount is relative to the current position in the stream. |
Implemented in cAudio::cFileSource, and cAudio::cMemorySource.
1.6.2