7 #include "IRefCounted.h"
34 virtual int read(
void* output,
int size) = 0;
41 virtual bool seek(
int amount,
bool relative) = 0;
Interface for data providers in cAudio.
virtual bool isValid()=0
Returns whether the source is valid.
Applies reference counting to certain cAudio objects.
virtual int read(void *output, int size)=0
Reads out a section of the data stream.
virtual int getSize()=0
Returns the total size of the data stream.
virtual int getCurrentPos()=0
Returns the current location in the data stream.
virtual bool seek(int amount, bool relative)=0
Seek to a position in the data stream.