An AudioSource which takes some float audio data as an input.
More...
#include <juce_MemoryAudioSource.h>
An AudioSource which takes some float audio data as an input.
@tags{Audio}
◆ MemoryAudioSource()
| 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.
◆ getNextAudioBlock()
◆ getNextReadPosition()
| int64 juce::MemoryAudioSource::getNextReadPosition |
( |
| ) |
const |
|
overridevirtual |
◆ getTotalLength()
| int64 juce::MemoryAudioSource::getTotalLength |
( |
| ) |
const |
|
overridevirtual |
◆ isLooping()
| bool juce::MemoryAudioSource::isLooping |
( |
| ) |
const |
|
overridevirtual |
◆ prepareToPlay()
| void juce::MemoryAudioSource::prepareToPlay |
( |
int |
samplesPerBlockExpected, |
|
|
double |
sampleRate |
|
) |
| |
|
overridevirtual |
◆ releaseResources()
| void juce::MemoryAudioSource::releaseResources |
( |
| ) |
|
|
overridevirtual |
◆ setLooping()
| void juce::MemoryAudioSource::setLooping |
( |
bool |
shouldLoop | ) |
|
|
overridevirtual |
◆ setNextReadPosition()
| void juce::MemoryAudioSource::setNextReadPosition |
( |
int64 |
newPosition | ) |
|
|
overridevirtual |
◆ buffer
◆ isCurrentlyLooping
| bool juce::MemoryAudioSource::isCurrentlyLooping |
|
private |
◆ position
| int juce::MemoryAudioSource::position = 0 |
|
private |
The documentation for this class was generated from the following file: