JUCE
|
An AudioSource which takes some float audio data as an input. More...
Public Member Functions | |
MemoryAudioSource (AudioBuffer< float > &audioBuffer, bool copyMemory, bool shouldLoop=false) | |
Creates a MemoryAudioSource by providing an audio buffer. More... | |
void | prepareToPlay (int samplesPerBlockExpected, double sampleRate) override |
Implementation of the AudioSource method. More... | |
void | releaseResources () override |
Implementation of the AudioSource method. More... | |
void | getNextAudioBlock (const AudioSourceChannelInfo &bufferToFill) override |
Implementation of the AudioSource method. More... | |
Public Member Functions inherited from AudioSource | |
virtual | ~AudioSource ()=default |
Destructor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from AudioSource | |
AudioSource ()=default | |
Creates an AudioSource. More... | |
An AudioSource which takes some float audio data as an input.
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 AudioSource.
|
overridevirtual |
Implementation of the AudioSource method.
Implements AudioSource.
|
overridevirtual |
Implementation of the AudioSource method.
Implements AudioSource.