|
OpenShot Library | libopenshot-audio 0.2.0
|
A type of AudioSource that will read from an AudioFormatReader. More...
#include <juce_AudioFormatReaderSource.h>
Inheritance diagram for juce::AudioFormatReaderSource:Public Member Functions | |
| AudioFormatReaderSource (AudioFormatReader *sourceReader, bool deleteReaderWhenThisIsDeleted) | |
| Creates an AudioFormatReaderSource for a given reader. | |
| ~AudioFormatReaderSource () override | |
| Destructor. | |
| void | setLooping (bool shouldLoop) override |
| Toggles loop-mode. | |
| bool | isLooping () const override |
| Returns whether loop-mode is turned on or not. | |
| AudioFormatReader * | getAudioFormatReader () const noexcept |
| Returns the reader that's being used. | |
| void | prepareToPlay (int samplesPerBlockExpected, double sampleRate) override |
| Implementation of the AudioSource method. | |
| void | releaseResources () override |
| Implementation of the AudioSource method. | |
| void | getNextAudioBlock (const AudioSourceChannelInfo &) override |
| Implementation of the AudioSource method. | |
| void | setNextReadPosition (int64 newPosition) override |
| Implements the PositionableAudioSource method. | |
| int64 | getNextReadPosition () const override |
| Implements the PositionableAudioSource method. | |
| int64 | getTotalLength () const override |
| Implements the PositionableAudioSource method. | |
Public Member Functions inherited from juce::PositionableAudioSource | |
| ~PositionableAudioSource () override=default | |
| Destructor. | |
| virtual void | setNextReadPosition (int64 newPosition)=0 |
| Tells the stream to move to a new position. | |
| virtual int64 | getNextReadPosition () const =0 |
| Returns the position from which the next block will be returned. | |
| virtual int64 | getTotalLength () const =0 |
| Returns the total length of the stream (in samples). | |
| virtual bool | isLooping () const =0 |
| Returns true if this source is actually playing in a loop. | |
| virtual void | setLooping (bool shouldLoop) |
| Tells the source whether you'd like it to play in a loop. | |
Public Member Functions inherited from juce::AudioSource | |
| virtual | ~AudioSource ()=default |
| Destructor. | |
| virtual void | prepareToPlay (int samplesPerBlockExpected, double sampleRate)=0 |
| Tells the source to prepare for playing. | |
| virtual void | releaseResources ()=0 |
| Allows the source to release anything it no longer needs after playback has stopped. | |
| virtual void | getNextAudioBlock (const AudioSourceChannelInfo &bufferToFill)=0 |
| Called repeatedly to fetch subsequent blocks of audio data. | |
Additional Inherited Members | |
Protected Member Functions inherited from juce::PositionableAudioSource | |
| PositionableAudioSource ()=default | |
| Creates the PositionableAudioSource. | |
Protected Member Functions inherited from juce::AudioSource | |
| AudioSource ()=default | |
| Creates an AudioSource. | |
A type of AudioSource that will read from an AudioFormatReader.
Definition at line 42 of file juce_AudioFormatReaderSource.h.
| juce::AudioFormatReaderSource::AudioFormatReaderSource | ( | AudioFormatReader * | sourceReader, |
| bool | deleteReaderWhenThisIsDeleted | ||
| ) |
Creates an AudioFormatReaderSource for a given reader.
| 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 |
Definition at line 30 of file juce_AudioFormatReaderSource.cpp.
|
override |
Destructor.
Definition at line 39 of file juce_AudioFormatReaderSource.cpp.
|
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.
Reimplemented from juce::PositionableAudioSource.
Definition at line 43 of file juce_AudioFormatReaderSource.cpp.
|
inlineoverridevirtual |
Returns whether loop-mode is turned on or not.
Implements juce::PositionableAudioSource.
Definition at line 71 of file juce_AudioFormatReaderSource.h.
|
inlinenoexcept |
Returns the reader that's being used.
Definition at line 74 of file juce_AudioFormatReaderSource.h.
|
overridevirtual |
Implementation of the AudioSource method.
Implements juce::AudioSource.
Definition at line 51 of file juce_AudioFormatReaderSource.cpp.
|
overridevirtual |
Implementation of the AudioSource method.
Implements juce::AudioSource.
Definition at line 52 of file juce_AudioFormatReaderSource.cpp.
|
overridevirtual |
Implementation of the AudioSource method.
Implements juce::AudioSource.
Definition at line 54 of file juce_AudioFormatReaderSource.cpp.
References juce::AudioSourceChannelInfo::buffer, juce::AudioSourceChannelInfo::numSamples, and juce::AudioSourceChannelInfo::startSample.
|
overridevirtual |
Implements the PositionableAudioSource method.
Implements juce::PositionableAudioSource.
Definition at line 42 of file juce_AudioFormatReaderSource.cpp.
|
overridevirtual |
Implements the PositionableAudioSource method.
Implements juce::PositionableAudioSource.
Definition at line 45 of file juce_AudioFormatReaderSource.cpp.
|
overridevirtual |
Implements the PositionableAudioSource method.
Implements juce::PositionableAudioSource.
Definition at line 41 of file juce_AudioFormatReaderSource.cpp.