TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
engine::PlayHeadPositionNode Class Referencefinal

A Node that calculates a position to show visually what time is currently being processed by the graph based on its internal latency. More...

#include <tracktion_PlayHeadPositionNode.h>

Inheritance diagram for engine::PlayHeadPositionNode:

Public Member Functions

 PlayHeadPositionNode (ProcessState &processStateToUse, std::unique_ptr< tracktion::graph::Node > inputNode, std::atomic< double > &playHeadTimeToUpdate)
 
tracktion::graph::NodeProperties getNodeProperties () override
 
std::vector< tracktion::graph::Node * > getDirectInputNodes () override
 
bool isReadyToProcess () override
 
void prepareToPlay (const tracktion::graph::PlaybackInitialisationInfo &info) override
 
void process (ProcessContext &pc) override
 
- Public Member Functions inherited from engine::TracktionEngineNode
 TracktionEngineNode (ProcessState &)
 Creates a TracktionEngineNode.
 
virtual ~TracktionEngineNode ()=default
 Destructor.
 
int getNumSamples () const
 Returns the number of samples in the current process block.
 
double getSampleRate () const
 Returns the sample rate of the current process block.
 
juce::Range< int64_t > getTimelineSampleRange () const
 Returns the timeline sample range of the current process block.
 
TimeRange getEditTimeRange () const
 Returns the edit time range of the current process block.
 
BeatRange getEditBeatRange () const
 Returns the edit beat range of the current process block.
 
juce::Range< int64_t > getReferenceSampleRange () const
 Returns the reference sample range (from the DeviceManager) of the current process block.
 
tempo::Key getKey () const
 Returns the key of the current process block.
 
double getPlaybackSpeedRatio () const
 Returns the playback speed ratio of the current process block.
 
std::optional< TimePosition > getTimeOfNextChange () const
 May return the time of the next tempo or time sig change.
 
std::optional< BeatPosition > getBeatOfNextChange () const
 May return the time of the next tempo or time sig change.
 
tracktion::graph::PlayHeadState & getPlayHeadState ()
 Returns the PlayHeadState in use.
 
tracktion::graph::PlayHead & getPlayHead ()
 Returns the PlayHead in use.
 
ProcessStategetProcessState ()
 Returns the ProcessState in use.
 
void setProcessState (ProcessState &)
 

Detailed Description

A Node that calculates a position to show visually what time is currently being processed by the graph based on its internal latency.

Constructor & Destructor Documentation

◆ PlayHeadPositionNode()

engine::PlayHeadPositionNode::PlayHeadPositionNode ( ProcessState processStateToUse,
std::unique_ptr< tracktion::graph::Node >  inputNode,
std::atomic< double > &  playHeadTimeToUpdate 
)

Member Function Documentation

◆ getNodeProperties()

tracktion::graph::NodeProperties engine::PlayHeadPositionNode::getNodeProperties ( )
override

◆ getDirectInputNodes()

std::vector< tracktion::graph::Node * > engine::PlayHeadPositionNode::getDirectInputNodes ( )
override

◆ isReadyToProcess()

bool engine::PlayHeadPositionNode::isReadyToProcess ( )
override

◆ prepareToPlay()

void engine::PlayHeadPositionNode::prepareToPlay ( const tracktion::graph::PlaybackInitialisationInfo &  info)
override

◆ process()

void engine::PlayHeadPositionNode::process ( ProcessContext &  pc)
override

The documentation for this class was generated from the following file: