|
LMMS
|
#include <juce_MemoryAudioSource.h>
Public Member Functions | |
| MemoryAudioSource (AudioBuffer< float > &audioBuffer, bool copyMemory, bool shouldLoop=false) | |
| void | prepareToPlay (int samplesPerBlockExpected, double sampleRate) override |
| void | releaseResources () override |
| void | getNextAudioBlock (const AudioSourceChannelInfo &bufferToFill) override |
| void | setNextReadPosition (int64 newPosition) override |
| int64 | getNextReadPosition () const override |
| int64 | getTotalLength () const override |
| bool | isLooping () const override |
| void | setLooping (bool shouldLoop) override |
| Public Member Functions inherited from juce::PositionableAudioSource | |
| ~PositionableAudioSource () override=default | |
| Public Member Functions inherited from juce::AudioSource | |
| virtual | ~AudioSource ()=default |
Private Attributes | |
| AudioBuffer< float > | buffer |
| int | position = 0 |
| bool | isCurrentlyLooping |
Additional Inherited Members | |
| Protected Member Functions inherited from juce::PositionableAudioSource | |
| PositionableAudioSource ()=default | |
| Protected Member Functions inherited from juce::AudioSource | |
| AudioSource ()=default | |
An AudioSource which takes some float audio data as an input.
@tags{Audio}
| juce::MemoryAudioSource::MemoryAudioSource | ( | AudioBuffer< float > & | audioBuffer, |
| bool | copyMemory, | ||
| bool | shouldLoop = false ) |
Creates a MemoryAudioSource by providing an audio buffer.
If copyMemory is true then the buffer will be copied into an internal buffer which will be owned by the MemoryAudioSource. If copyMemory is false, then you must ensure that the lifetime of the audio buffer is at least as long as the MemoryAudioSource.
|
overridevirtual |
Implementation of the AudioSource method.
Implements juce::AudioSource.
|
overridevirtual |
Implementation of the PositionableAudioSource method.
Implements juce::PositionableAudioSource.
|
overridevirtual |
Implementation of the PositionableAudioSource method.
Implements juce::PositionableAudioSource.
|
overridevirtual |
Implementation of the PositionableAudioSource method.
Implements juce::PositionableAudioSource.
|
overridevirtual |
Implementation of the AudioSource method.
Implements juce::AudioSource.
|
overridevirtual |
Implementation of the AudioSource method.
Implements juce::AudioSource.
|
overridevirtual |
Implementation of the PositionableAudioSource method.
Reimplemented from juce::PositionableAudioSource.
Implementation of the PositionableAudioSource method.
Implements juce::PositionableAudioSource.
|
private |
|
private |
|
private |