openshot-audio  0.1.5
Public Member Functions | List of all members
juce::AudioFormatReaderSource Class Reference

#include <juce_audio_formats.h>

Inheritance diagram for juce::AudioFormatReaderSource:
juce::PositionableAudioSource juce::AudioSource

Public Member Functions

 AudioFormatReaderSource (AudioFormatReader *sourceReader, bool deleteReaderWhenThisIsDeleted)
 
 ~AudioFormatReaderSource ()
 
void setLooping (bool shouldLoop) override
 
bool isLooping () const override
 
AudioFormatReadergetAudioFormatReader () const noexcept
 
void prepareToPlay (int samplesPerBlockExpected, double sampleRate) override
 
void releaseResources () override
 
void getNextAudioBlock (const AudioSourceChannelInfo &) override
 
void setNextReadPosition (int64 newPosition) override
 
int64 getNextReadPosition () const override
 
int64 getTotalLength () const override
 
- Public Member Functions inherited from juce::PositionableAudioSource
 ~PositionableAudioSource ()
 
- Public Member Functions inherited from juce::AudioSource
virtual ~AudioSource ()
 

Additional Inherited Members

- Protected Member Functions inherited from juce::PositionableAudioSource
 PositionableAudioSource () noexcept
 
- Protected Member Functions inherited from juce::AudioSource
 AudioSource () noexcept
 

Detailed Description

A type of AudioSource that will read from an AudioFormatReader.

See also
PositionableAudioSource, AudioTransportSource, BufferingAudioSource

Constructor & Destructor Documentation

◆ AudioFormatReaderSource()

AudioFormatReaderSource::AudioFormatReaderSource ( AudioFormatReader sourceReader,
bool  deleteReaderWhenThisIsDeleted 
)

Creates an AudioFormatReaderSource for a given reader.

Parameters
sourceReaderthe reader to use as the data source - this must not be null
deleteReaderWhenThisIsDeletedif 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 ( )

Destructor.

Member Function Documentation

◆ getAudioFormatReader()

AudioFormatReader* juce::AudioFormatReaderSource::getAudioFormatReader ( ) const
inlinenoexcept

Returns the reader that's being used.

◆ getNextAudioBlock()

void AudioFormatReaderSource::getNextAudioBlock ( const AudioSourceChannelInfo info)
overridevirtual

Implementation of the AudioSource method.

Implements juce::AudioSource.

◆ getNextReadPosition()

int64 AudioFormatReaderSource::getNextReadPosition ( ) const
overridevirtual

Implements the PositionableAudioSource method.

Implements juce::PositionableAudioSource.

◆ getTotalLength()

int64 AudioFormatReaderSource::getTotalLength ( ) const
overridevirtual

Implements the PositionableAudioSource method.

Implements juce::PositionableAudioSource.

◆ isLooping()

bool juce::AudioFormatReaderSource::isLooping ( ) const
inlineoverridevirtual

Returns whether loop-mode is turned on or not.

Implements juce::PositionableAudioSource.

◆ prepareToPlay()

void AudioFormatReaderSource::prepareToPlay ( int  samplesPerBlockExpected,
double  sampleRate 
)
overridevirtual

Implementation of the AudioSource method.

Implements juce::AudioSource.

◆ releaseResources()

void AudioFormatReaderSource::releaseResources ( )
overridevirtual

Implementation of the AudioSource method.

Implements juce::AudioSource.

◆ 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 juce::PositionableAudioSource.

◆ setNextReadPosition()

void AudioFormatReaderSource::setNextReadPosition ( int64  newPosition)
overridevirtual

Implements the PositionableAudioSource method.

Implements juce::PositionableAudioSource.


The documentation for this class was generated from the following files: