TracktionEngine
Loading...
Searching...
No Matches
graph::test_utilities::TestProcess< NodePlayerType > Struct Template Reference

#include <tracktion_TestUtilities.h>

Public Member Functions

 TestProcess (std::unique_ptr< NodePlayerType > playerToUse, TestSetup ts, const int numChannelsToUse, const double duration, bool writeToBuffer)
std::string getDescription () const
 Returns a description of the number of channels and length of rendering.
const PerformanceMeasurement & getPerformanceMeasurement ()
PerformanceMeasurement::Statistics getStatisticsAndReset ()
Node & getNode () const
NodePlayerType & getNodePlayer () const
void setNode (std::unique_ptr< Node > newNode)
void setPlayer (std::unique_ptr< NodePlayerType > newPlayerToUse)
void setPlayHead (tracktion::graph::PlayHead *newPlayHead)
bool process (int maxNumSamples)
 Processes a number of samples.
std::shared_ptr< TestContext > processAll ()
std::shared_ptr< TestContext > getTestResult ()

Constructor & Destructor Documentation

◆ TestProcess()

template<typename NodePlayerType>
graph::test_utilities::TestProcess< NodePlayerType >::TestProcess ( std::unique_ptr< NodePlayerType > playerToUse,
TestSetup ts,
const int numChannelsToUse,
const double duration,
bool writeToBuffer )

Member Function Documentation

◆ getDescription()

template<typename NodePlayerType>
std::string graph::test_utilities::TestProcess< NodePlayerType >::getDescription ( ) const

Returns a description of the number of channels and length of rendering.

◆ getPerformanceMeasurement()

template<typename NodePlayerType>
const PerformanceMeasurement & graph::test_utilities::TestProcess< NodePlayerType >::getPerformanceMeasurement ( )

◆ getStatisticsAndReset()

template<typename NodePlayerType>
PerformanceMeasurement::Statistics graph::test_utilities::TestProcess< NodePlayerType >::getStatisticsAndReset ( )

◆ getNode()

template<typename NodePlayerType>
Node & graph::test_utilities::TestProcess< NodePlayerType >::getNode ( ) const

◆ getNodePlayer()

template<typename NodePlayerType>
NodePlayerType & graph::test_utilities::TestProcess< NodePlayerType >::getNodePlayer ( ) const

◆ setNode()

template<typename NodePlayerType>
void graph::test_utilities::TestProcess< NodePlayerType >::setNode ( std::unique_ptr< Node > newNode)

◆ setPlayer()

template<typename NodePlayerType>
void graph::test_utilities::TestProcess< NodePlayerType >::setPlayer ( std::unique_ptr< NodePlayerType > newPlayerToUse)

Referenced by TestProcess().

◆ setPlayHead()

template<typename NodePlayerType>
void graph::test_utilities::TestProcess< NodePlayerType >::setPlayHead ( tracktion::graph::PlayHead * newPlayHead)

◆ process()

template<typename NodePlayerType>
bool graph::test_utilities::TestProcess< NodePlayerType >::process ( int maxNumSamples)

Processes a number of samples.

Returns true if there is still more processing to be done.

Referenced by processAll().

◆ processAll()

template<typename NodePlayerType>
std::shared_ptr< TestContext > graph::test_utilities::TestProcess< NodePlayerType >::processAll ( )

References getTestResult(), and process().

◆ getTestResult()

template<typename NodePlayerType>
std::shared_ptr< TestContext > graph::test_utilities::TestProcess< NodePlayerType >::getTestResult ( )

Referenced by processAll().


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