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_TrackWaveInputDeviceNode.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
TrackWaveInputDeviceNode
final :
public
tracktion::graph::Node
,
18
private
TracktionEngineNode
19
{
20
public
:
21
TrackWaveInputDeviceNode
(
ProcessState
&,
WaveInputDevice
&,
std::unique_ptr<Node>
,
bool
copyInputsToOutputs);
22
23
std::vector<Node*>
getDirectInputNodes
()
override
;
24
tracktion::graph::NodeProperties
getNodeProperties
()
override
;
25
void
prepareToPlay
(
const
tracktion::graph::PlaybackInitialisationInfo
&)
override
;
26
bool
isReadyToProcess
()
override
;
27
void
process
(
ProcessContext
&)
override
;
28
29
private
:
30
//==============================================================================
31
WaveInputDevice
& waveInputDevice;
32
std::unique_ptr<Node>
input;
33
double
sampleRate = 44100.0;
34
TimeDuration
offset;
35
const
bool
copyInputsToOutputs =
false
;
36
};
37
38
}}
// namespace tracktion { inline namespace engine
tracktion::engine::TrackWaveInputDeviceNode
A Node that takes audio from the output of a track and sends it to its corresponding InputDevice.
Definition
tracktion_TrackWaveInputDeviceNode.h:19
tracktion::engine::TrackWaveInputDeviceNode::prepareToPlay
void prepareToPlay(const tracktion::graph::PlaybackInitialisationInfo &) override
Called once before playback begins for each node.
Definition
tracktion_TrackWaveInputDeviceNode.cpp:37
tracktion::engine::TrackWaveInputDeviceNode::isReadyToProcess
bool isReadyToProcess() override
Should return true when this node is ready to be processed.
Definition
tracktion_TrackWaveInputDeviceNode.cpp:46
tracktion::engine::TrackWaveInputDeviceNode::getDirectInputNodes
std::vector< Node * > getDirectInputNodes() override
Should return all the inputs directly feeding in to this node.
Definition
tracktion_TrackWaveInputDeviceNode.cpp:27
tracktion::engine::TrackWaveInputDeviceNode::process
void process(ProcessContext &) override
Called when the node is to be processed.
Definition
tracktion_TrackWaveInputDeviceNode.cpp:51
tracktion::engine::TrackWaveInputDeviceNode::getNodeProperties
tracktion::graph::NodeProperties getNodeProperties() override
Should return the properties of the node.
Definition
tracktion_TrackWaveInputDeviceNode.cpp:32
tracktion::engine::TracktionEngineNode
Base class for Nodes that provides information about the current process call.
Definition
tracktion_TracktionEngineNode.h:100
tracktion::engine::WaveInputDevice
A (virtual) audio input device.
Definition
tracktion_WaveInputDevice.h:20
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::TimeDuration
Represents a duration in real-life time.
Definition
tracktion_Time.h:99
tracktion::engine::ProcessState
Holds the state of a process call.
Definition
tracktion_TracktionEngineNode.h:20
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