tracktion-engine
3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_engine
playback
graph
tracktion_RackInstanceNode.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
11
namespace
tracktion
{
inline
namespace
engine
12
{
13
17
class
RackInstanceNode
final :
public
tracktion::graph::Node
18
{
19
public
:
20
using
ChannelMap
=
std::array<std::tuple<int, int, AutomatableParameter::Ptr>
, 2>;
21
25
RackInstanceNode
(
std::unique_ptr<Node>
,
ChannelMap
channelMap);
26
27
std::vector<Node*>
getDirectInputNodes
()
override
;
28
tracktion::graph::NodeProperties
getNodeProperties
()
override
;
29
void
prepareToPlay
(
const
tracktion::graph::PlaybackInitialisationInfo
&)
override
;
30
bool
isReadyToProcess
()
override
;
31
void
preProcess
(choc::buffer::FrameCount,
juce::Range<int64_t>
)
override
;
32
void
process
(
ProcessContext
&)
override
;
33
34
private
:
35
//==============================================================================
36
std::unique_ptr<Node>
input;
37
ChannelMap
channelMap;
38
int
maxNumChannels = 0;
39
float
lastGain[2];
40
bool
canUseSourceBuffers =
false
;
41
};
42
43
}}
// namespace tracktion { inline namespace engine
std::array< std::tuple< int, int, AutomatableParameter::Ptr >, 2 >
juce::Range
tracktion::engine::RackInstanceNode
Sends an input Node to a Rack bus handling the channel mapping and channel gain levels.
Definition
tracktion_RackInstanceNode.h:18
tracktion::engine::RackInstanceNode::process
void process(ProcessContext &) override
Called when the node is to be processed.
Definition
tracktion_RackInstanceNode.cpp:74
tracktion::engine::RackInstanceNode::getDirectInputNodes
std::vector< Node * > getDirectInputNodes() override
Should return all the inputs directly feeding in to this node.
Definition
tracktion_RackInstanceNode.cpp:32
tracktion::engine::RackInstanceNode::prepareToPlay
void prepareToPlay(const tracktion::graph::PlaybackInitialisationInfo &) override
Called once before playback begins for each node.
Definition
tracktion_RackInstanceNode.cpp:47
tracktion::engine::RackInstanceNode::getNodeProperties
tracktion::graph::NodeProperties getNodeProperties() override
Should return the properties of the node.
Definition
tracktion_RackInstanceNode.cpp:37
tracktion::engine::RackInstanceNode::preProcess
void preProcess(choc::buffer::FrameCount, juce::Range< int64_t >) override
Called when the node is to be processed, just before process.
Definition
tracktion_RackInstanceNode.cpp:68
tracktion::engine::RackInstanceNode::isReadyToProcess
bool isReadyToProcess() override
Should return true when this node is ready to be processed.
Definition
tracktion_RackInstanceNode.cpp:63
tracktion::graph::Node
Main graph Node processor class.
Definition
tracktion_Node.h:217
tracktion::graph::Node::ProcessContext
Struct to describe a single iteration of a process call.
Definition
tracktion_Node.h:303
tracktion
Definition
tracktion_AudioReader.h:23
tracktion::graph::NodeProperties
Holds some really basic properties of a node.
Definition
tracktion_Node.h:152
tracktion::graph::PlaybackInitialisationInfo
Passed into Nodes when they are being initialised, to give them useful contextual information that th...
Definition
tracktion_Node.h:140
std::unique_ptr
std::vector
« « « Anklang Documentation