#include <juce_audio_formats.h>
AudioFormatReaderSource::AudioFormatReaderSource |
( |
AudioFormatReader * |
sourceReader, |
|
|
bool |
deleteReaderWhenThisIsDeleted |
|
) |
| |
Creates an AudioFormatReaderSource for a given reader.
- Parameters
-
sourceReader | the reader to use as the data source - this must not be null |
deleteReaderWhenThisIsDeleted | if true, the reader passed-in will be deleted when this object is deleted; if false it will be left up to the caller to manage its lifetime |
AudioFormatReaderSource::~AudioFormatReaderSource |
( |
| ) |
|
Returns the reader that's being used.
int64 AudioFormatReaderSource::getNextReadPosition |
( |
| ) |
const |
|
overridevirtual |
int64 AudioFormatReaderSource::getTotalLength |
( |
| ) |
const |
|
overridevirtual |
bool juce::AudioFormatReaderSource::isLooping |
( |
| ) |
const |
|
inlineoverridevirtual |
void AudioFormatReaderSource::prepareToPlay |
( |
int |
samplesPerBlockExpected, |
|
|
double |
sampleRate |
|
) |
| |
|
overridevirtual |
void AudioFormatReaderSource::releaseResources |
( |
| ) |
|
|
overridevirtual |
void AudioFormatReaderSource::setLooping |
( |
bool |
shouldLoop | ) |
|
|
overridevirtual |
Toggles loop-mode.
If set to true, it will continuously loop the input source. If false, it will just emit silence after the source has finished.
- See Also
- isLooping
Reimplemented from juce::PositionableAudioSource.
void AudioFormatReaderSource::setNextReadPosition |
( |
int64 |
newPosition | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: