A type of AudioSource that will read from an AudioFormatReader.
More...
#include <juce_AudioFormatReaderSource.h>
◆ 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 |
◆ ~AudioFormatReaderSource()
juce::AudioFormatReaderSource::~AudioFormatReaderSource |
( |
| ) |
|
|
override |
◆ getAudioFormatReader()
Returns the reader that's being used.
◆ getNextAudioBlock()
◆ getNextReadPosition()
int64 juce::AudioFormatReaderSource::getNextReadPosition |
( |
| ) |
const |
|
overridevirtual |
◆ getTotalLength()
int64 juce::AudioFormatReaderSource::getTotalLength |
( |
| ) |
const |
|
overridevirtual |
◆ isLooping()
bool juce::AudioFormatReaderSource::isLooping |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ prepareToPlay()
void juce::AudioFormatReaderSource::prepareToPlay |
( |
int |
samplesPerBlockExpected, |
|
|
double |
sampleRate |
|
) |
| |
|
overridevirtual |
◆ releaseResources()
void juce::AudioFormatReaderSource::releaseResources |
( |
| ) |
|
|
overridevirtual |
◆ 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.
◆ setNextReadPosition()
void juce::AudioFormatReaderSource::setNextReadPosition |
( |
int64 |
newPosition | ) |
|
|
overridevirtual |
◆ looping
bool juce::AudioFormatReaderSource::looping |
|
private |
◆ nextPlayPos
int64 juce::AudioFormatReaderSource::nextPlayPos |
|
private |
◆ reader
The documentation for this class was generated from the following file: