77 virtual void setLooping (
bool shouldLoop) { ignoreUnused (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 void setLooping(bool shouldLoop)
Tells the source whether you'd like it to play in a loop.
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.
#define JUCE_API
This macro is added to all JUCE public class declarations.