|
TracktionEngine
|
An audio scratch buffer that has pooled storage. More...
#include <tracktion_AudioScratchBuffer.h>
Public Member Functions | |
| AudioScratchBuffer (int numChans, int numSamples) | |
| Creates a buffer for a given number of channels and samples. | |
| AudioScratchBuffer (const juce::AudioBuffer< float > &bufferToCopy) | |
| Creates a buffer copying an existing AudioBuffer in to it. | |
| ~AudioScratchBuffer () noexcept | |
| Destructor. | |
Static Public Member Functions | |
| static void | initialise () |
| Initialises the internal buffer list. | |
Public Attributes | |
| juce::AudioBuffer< float > & | buffer |
| The buffer to use. | |
An audio scratch buffer that has pooled storage.
Create one of these on the stack to use as a temporary buffer.
| tracktion::engine::AudioScratchBuffer::AudioScratchBuffer | ( | int | numChans, |
| int | numSamples | ||
| ) |
Creates a buffer for a given number of channels and samples.
| tracktion::engine::AudioScratchBuffer::AudioScratchBuffer | ( | const juce::AudioBuffer< float > & | bufferToCopy | ) |
Creates a buffer copying an existing AudioBuffer in to it.
|
noexcept |
Destructor.
|
static |
Initialises the internal buffer list.
| juce::AudioBuffer<float>& tracktion::engine::AudioScratchBuffer::buffer |
The buffer to use.
Don't reassign or resize this.
Referenced by tracktion::engine::TempoDetect::processSection().