|virtual void||setNextReadPosition (int64 newPosition)=0|
|Tells the stream to move to a new position. More...|
|virtual int64||getNextReadPosition () const =0|
|Returns the position from which the next block will be returned. More...|
|virtual int64||getTotalLength () const =0|
|Returns the total length of the stream (in samples). More...|
|virtual bool||isLooping () const =0|
|Returns true if this source is actually playing in a loop. More...|
|virtual void||setLooping (bool shouldLoop)|
|Tells the source whether you'd like it to play in a loop. More...|
|Public Member Functions inherited from AudioSource|
|virtual void||prepareToPlay (int samplesPerBlockExpected, double sampleRate)=0|
|Tells the source to prepare for playing. More...|
|virtual void||releaseResources ()=0|
|Allows the source to release anything it no longer needs after playback has stopped. More...|
|virtual void||getNextAudioBlock (const AudioSourceChannelInfo &bufferToFill)=0|
|Called repeatedly to fetch subsequent blocks of audio data. More...|
|PositionableAudioSource () noexcept|
|Creates the PositionableAudioSource. More...|
|Protected Member Functions inherited from AudioSource|
|AudioSource () noexcept|
|Creates an AudioSource. More...|
A type of AudioSource which can be repositioned.
Constructor & Destructor Documentation
Creates the PositionableAudioSource.
Member Function Documentation
Tells the stream to move to a new position.
Calling this indicates that the next call to AudioSource::getNextAudioBlock() should return samples from this position.
Note that this may be called on a different thread to getNextAudioBlock(), so the subclass should make sure it's synchronised.
Tells the source whether you'd like it to play in a loop.
Reimplemented in AudioFormatReaderSource.
The documentation for this class was generated from the following file: