TracktionEngine
|
Classes | |
struct | SineOscillator |
struct | TestSetup |
struct | TestContext |
struct | TestProcess |
Functions | |
template<typename AudioFormatType > | |
void | writeToFile (juce::File file, choc::buffer::ChannelArrayView< float > block, double sampleRate, int qualityOptionIndex) |
Writes an audio buffer to a file. More... | |
template<typename AudioFormatType > | |
std::unique_ptr< juce::TemporaryFile > | writeToTemporaryFile (choc::buffer::ChannelArrayView< float > block, double sampleRate, int qualityOptionIndex) |
Writes an audio buffer to a file. More... | |
juce::String | getName (ThreadPoolStrategy type) |
Returns the ammount of internal memory allocated for buffers. More... | |
std::vector< ThreadPoolStrategy > | getThreadPoolStrategies () |
void | logGraph (Node &node) |
Logs the graph structure to the console. More... | |
std::string | createGraphDescription (Node &) |
Returns the graph structure in a dot textual description. More... | |
template<typename AudioFormatType > | |
std::unique_ptr< juce::TemporaryFile > | getSinFile (double sampleRate, double durationInSeconds, int numChannels=1, float frequency=220.0f, int qualityOptionIndex=-1) |
template<typename AudioFormatType > | |
std::unique_ptr< juce::TemporaryFile > | getSquareFile (double sampleRate, double durationInSeconds, int numChannels=1, float frequency=220.0f, int qualityOptionIndex=-1) |
template<typename AudioFormatType > | |
std::unique_ptr< juce::TemporaryFile > | getTimeEncodedFile (double sampleRate, TimeDuration duration, TimeDuration stepDuration, int numChannels=1, int qualityOptionIndex=-1) |
void tracktion::graph::test_utilities::writeToFile | ( | juce::File | file, |
choc::buffer::ChannelArrayView< float > | block, | ||
double | sampleRate, | ||
int | qualityOptionIndex | ||
) |
Writes an audio buffer to a file.
References tracktion::graph::toAudioBuffer().
std::unique_ptr<juce::TemporaryFile> tracktion::graph::test_utilities::writeToTemporaryFile | ( | choc::buffer::ChannelArrayView< float > | block, |
double | sampleRate, | ||
int | qualityOptionIndex | ||
) |
Writes an audio buffer to a file.
juce::String tracktion::graph::test_utilities::getName | ( | ThreadPoolStrategy | type | ) |
Returns the ammount of internal memory allocated for buffers.
References tracktion::graph::conditionVariable, tracktion::graph::hybrid, tracktion::graph::lightweightSemaphore, tracktion::graph::lightweightSemHybrid, tracktion::graph::realTime, and tracktion::graph::semaphore.
Referenced by tracktion::engine::benchmark_utilities::getDescription().
std::vector<ThreadPoolStrategy> tracktion::graph::test_utilities::getThreadPoolStrategies | ( | ) |
void tracktion::graph::test_utilities::logGraph | ( | Node & | node | ) |
Logs the graph structure to the console.
References tracktion::graph::Node::getDirectInputNodes().
std::string tracktion::graph::test_utilities::createGraphDescription | ( | Node & | ) |
Returns the graph structure in a dot textual description.
Save this to a file and then run it through graphviz's dot program to plot the graph. E.g. cat output.txt | dot -Tsvg > output.svg
std::unique_ptr<juce::TemporaryFile> tracktion::graph::test_utilities::getSinFile | ( | double | sampleRate, |
double | durationInSeconds, | ||
int | numChannels = 1 , |
||
float | frequency = 220.0f , |
||
int | qualityOptionIndex = -1 |
||
) |
std::unique_ptr<juce::TemporaryFile> tracktion::graph::test_utilities::getSquareFile | ( | double | sampleRate, |
double | durationInSeconds, | ||
int | numChannels = 1 , |
||
float | frequency = 220.0f , |
||
int | qualityOptionIndex = -1 |
||
) |
std::unique_ptr<juce::TemporaryFile> tracktion::graph::test_utilities::getTimeEncodedFile | ( | double | sampleRate, |
TimeDuration | duration, | ||
TimeDuration | stepDuration, | ||
int | numChannels = 1 , |
||
int | qualityOptionIndex = -1 |
||
) |