73 virtual void setLooping (
bool shouldLoop);
Base class for objects that can produce a continuous stream of audio.
A type of AudioSource which can be repositioned.
virtual bool isLooping() const =0
Returns true if this source is actually playing in a loop.
PositionableAudioSource()=default
Creates the PositionableAudioSource.
virtual int64 getNextReadPosition() const =0
Returns the position from which the next block will be returned.
virtual int64 getTotalLength() const =0
Returns the total length of the stream (in samples).
~PositionableAudioSource() override=default
Destructor.
virtual void setNextReadPosition(int64 newPosition)=0
Tells the stream to move to a new position.
long long int64
A platform-independent 64-bit integer type.