|
TracktionEngine
|
Simple processor for a Node which uses an InputProvider to pass input in to the graph. More...
#include <tracktion_RackNode.h>
Public Member Functions | |
| RackNodePlayer (std::unique_ptr< tracktion::graph::Node > nodeToProcess) | |
| Creates an RackNodePlayer to process an Node with input. | |
| RackNodePlayer (std::unique_ptr< tracktion::graph::Node > nodeToProcess, double sampleRateToUse, int blockSizeToUse) | |
| Creates an RackNodePlayer to process an Node with input, sample rate and block size. | |
| void | prepareToPlay (double sampleRate, int blockSize) |
| Preapres the processor to be played. | |
| int | getLatencySamples () |
| int | process (const tracktion::graph::Node::ProcessContext &pc) |
| Processes a block of audio and MIDI data. | |
| int | process (const tracktion::graph::Node::ProcessContext &pc, TimeRange editTime, bool isPlaying, bool isScrubbing, bool isRendering) |
| Processes a block of audio and MIDI data with a given PlayHead and EditTimeRange. | |
Simple processor for a Node which uses an InputProvider to pass input in to the graph.
This simply iterate all the nodes attempting to process them in a single thread.
| tracktion::engine::RackNodePlayer< NodePlayerType >::RackNodePlayer | ( | std::unique_ptr< tracktion::graph::Node > | nodeToProcess | ) |
Creates an RackNodePlayer to process an Node with input.
| tracktion::engine::RackNodePlayer< NodePlayerType >::RackNodePlayer | ( | std::unique_ptr< tracktion::graph::Node > | nodeToProcess, |
| double | sampleRateToUse, | ||
| int | blockSizeToUse | ||
| ) |
Creates an RackNodePlayer to process an Node with input, sample rate and block size.
| void tracktion::engine::RackNodePlayer< NodePlayerType >::prepareToPlay | ( | double | sampleRate, |
| int | blockSize | ||
| ) |
Preapres the processor to be played.
| int tracktion::engine::RackNodePlayer< NodePlayerType >::getLatencySamples | ( | ) |
| int tracktion::engine::RackNodePlayer< NodePlayerType >::process | ( | const tracktion::graph::Node::ProcessContext & | pc | ) |
Processes a block of audio and MIDI data.
Returns the number of times a node was checked but unable to be processed.
References tracktion::engine::RackNodePlayer< NodePlayerType >::process().
Referenced by tracktion::engine::RackNodePlayer< NodePlayerType >::process().
| int tracktion::engine::RackNodePlayer< NodePlayerType >::process | ( | const tracktion::graph::Node::ProcessContext & | pc, |
| TimeRange | editTime, | ||
| bool | isPlaying, | ||
| bool | isScrubbing, | ||
| bool | isRendering | ||
| ) |
Processes a block of audio and MIDI data with a given PlayHead and EditTimeRange.
This should be used when processing ExternalPlugins or they will crash when getting the playhead info.