tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_AudioScratchBuffer.h
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
19{
20 struct BufferList;
21 struct Buffer;
22 Buffer* allocatedBuffer; // NB: keep this member first, as it needs to be initialised before buffer.
23
24public:
26 AudioScratchBuffer (int numChans, int numSamples);
27
29 AudioScratchBuffer (const juce::AudioBuffer<float>& bufferToCopy);
30
32 ~AudioScratchBuffer() noexcept;
33
36
38 static void initialise();
39
40private:
42};
43
44}} // namespace tracktion { inline namespace engine
An audio scratch buffer that has pooled storage.
juce::AudioBuffer< float > & buffer
The buffer to use.
static void initialise()
Initialises the internal buffer list.
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)