The documentation for this class was generated from the following file:
◆ AudioFormatReaderSource()
| juce::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 |
Referenced by getTotalLength().
◆ ~AudioFormatReaderSource()
| juce::AudioFormatReaderSource::~AudioFormatReaderSource |
( |
| ) |
|
|
override |
◆ setLooping()
| void juce::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.
◆ isLooping()
| bool juce::AudioFormatReaderSource::isLooping |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getAudioFormatReader()
Returns the reader that's being used.
◆ prepareToPlay()
| void juce::AudioFormatReaderSource::prepareToPlay |
( |
int | samplesPerBlockExpected, |
|
|
double | sampleRate ) |
|
overridevirtual |
◆ releaseResources()
| void juce::AudioFormatReaderSource::releaseResources |
( |
| ) |
|
|
overridevirtual |
◆ getNextAudioBlock()
◆ setNextReadPosition()
| void juce::AudioFormatReaderSource::setNextReadPosition |
( |
int64 | newPosition | ) |
|
|
overridevirtual |
◆ getNextReadPosition()
| int64 juce::AudioFormatReaderSource::getNextReadPosition |
( |
| ) |
const |
|
overridevirtual |
◆ getTotalLength()
| int64 juce::AudioFormatReaderSource::getTotalLength |
( |
| ) |
const |
|
overridevirtual |