13namespace tracktion {
inline namespace engine
18 const TrackMuteState* trackMuteState,
bool processAuxSendsWhenTrackIsMuted)
20 [&sourceSendPlugin, trackMuteState, processAuxSendsWhenTrackIsMuted]
22 if (processAuxSendsWhenTrackIsMuted)
37 auto gain = volumeFaderPositionToGain (sourceSendPlugin.gain->getCurrentValue());
38 if (sourceSendPlugin.invertPhase)
44 pluginPtr (sourceSendPlugin),
45 sendPlugin (sourceSendPlugin)
53 if (cachedNodeProperties)
54 return *cachedNodeProperties;
59 cachedNodeProperties = props;
66 sampleRate = info.sampleRate;
69 automationAdjustmentTime = TimeDuration::fromSamples (-props.latencyNumSamples, sampleRate);
76 if (sendPlugin.isAutomationNeeded()
80 const auto editTime = TimePosition::fromSamples (editSamplePos, sampleRate) + automationAdjustmentTime;
constexpr ValueType getStart() const noexcept
void updateParameterStreams(TimePosition)
Updates all the parameter streams to their positions at this time.
bool isReadingAutomation() const noexcept
Toggles automation playback Matches the auto play button on the transport controls.
NodeProperties getNodeProperties() override
Should return the properties of the node.
AuxSendNode(std::unique_ptr< Node > inputNode, int busIDToUse, AuxSendPlugin &, tracktion::graph::PlayHeadState &, const TrackMuteState *, bool processAuxSendsWhenTrackIsMuted)
Creates a AuxSendNode to process an aux send.
void process(ProcessContext &) override
Called when the node is to be processed.
void prepareToPlay(const tracktion::graph::PlaybackInitialisationInfo &) override
Called once before playback begins for each node.
AutomationRecordManager & getAutomationRecordManager() noexcept
Returns the AutomationRecordManager for the Edit.
Holds the state of a Track and if its contents/plugins should be played or not.
bool shouldTrackBeAudible() const
Returns true if the track's mix bus should be audible.
bool shouldTrackContentsBeProcessed() const
Returns true if the track's contents should be processed e.g.
Struct to describe a single iteration of a process call.
Determines how this block releates to other previous render blocks and if the play head has jumped in...
int64_t referenceSamplePositionToTimelinePosition(int64_t referenceSamplePosition) const
Converts a reference sample position to a timeline position.
void process(ProcessContext &pc) override
Called when the node is to be processed.
NodeProperties getNodeProperties() override
Should return the properties of the node.
Holds some really basic properties of a node.
Passed into Nodes when they are being initialised, to give them useful contextual information that th...