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