cAudio
2.3.0
3d Audio Engine
|
Interface for data providers in cAudio. More...
#include <IDataSource.h>
Public Member Functions | |
virtual bool | isValid ()=0 |
Returns whether the source is valid. More... | |
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. More... | |
virtual bool | seek (int amount, bool relative)=0 |
Seek to a position in the data stream. More... | |
![]() | |
virtual void | grab () |
Increments the reference count by one. | |
virtual bool | drop () |
Decrements the reference count by one. If it hits zero, this object is deleted. | |
int | getReferenceCount () const |
Returns the current reference count of this object. | |
Additional Inherited Members | |
![]() | |
int | RefCount |
Interface for data providers in cAudio.
Definition at line 12 of file IDataSource.h.
|
pure virtual |
Returns whether the source is valid.
Implemented in cAudio::cMemorySource.
|
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::cMemorySource.
|
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::cMemorySource.