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

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_SharedLevelMeasuringNode.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
18{
19public:
21
25 bool isReadyToProcess() override;
26 void prefetchBlock (juce::Range<int64_t> /*referenceSampleRange*/) override;
27 void process (ProcessContext&) override;
28
29private:
30 //==============================================================================
31 SharedLevelMeasurer::Ptr levelMeasurer;
33 double sampleRate = 44100.0;
34};
35
36}} // namespace tracktion { inline namespace engine
Applies a SharedLevelMeter to the audio passing through this node.
void process(ProcessContext &) override
Called when the node is to be processed.
std::vector< Node * > getDirectInputNodes() override
Should return all the inputs directly feeding in to this node.
bool isReadyToProcess() override
Should return true when this node is ready to be processed.
void prepareToPlay(const tracktion::graph::PlaybackInitialisationInfo &) override
Called once before playback begins for each node.
void prefetchBlock(juce::Range< int64_t >) override
Called before once on all Nodes before they are processed.
tracktion::graph::NodeProperties getNodeProperties() override
Should return the properties of the node.
Main graph Node processor class.
Struct to describe a single iteration of a process call.
Holds some really basic properties of a node.
Passed into Nodes when they are being initialised, to give them useful contextual information that th...