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