

Public Member Functions | |
| cFileSource (const char *filename) | |
| virtual bool | isValid () |
| Returns whether the source is valid. | |
| virtual int | getCurrentPos () |
| Returns the current location in the data stream. | |
| virtual int | getSize () |
| Returns the total size of the data stream. | |
| virtual int | read (void *output, int size) |
| Reads out a section of the data stream. | |
| virtual bool | seek (int amount, bool relative) |
| Seek to a position in the data stream. | |
Protected Attributes | |
| bool | Valid |
| Holds if valid. | |
| int | Filesize |
| Holds file size. | |
| FILE * | pFile |
| File stream. | |
Definition at line 16 of file cFileSource.h.
| bool cAudio::cFileSource::isValid | ( | ) | [virtual] |
Returns whether the source is valid.
Implements cAudio::IDataSource.
Definition at line 36 of file cFileSource.cpp.
| int cAudio::cFileSource::read | ( | void * | output, | |
| int | size | |||
| ) | [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. |
Implements cAudio::IDataSource.
Definition at line 51 of file cFileSource.cpp.
| bool cAudio::cFileSource::seek | ( | int | amount, | |
| bool | relative | |||
| ) | [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. |
Implements cAudio::IDataSource.
Definition at line 56 of file cFileSource.cpp.
1.6.2