I’m new to using Tracktion Engine, but have been really pleased with how much I’ve got done so quickly. However I’m struggling with passing params to renderToFile.
This code works fine, it renders the entire timeline:
auto tf = std::make_unique<juce::TemporaryFile> (".wav");
bool renderSuccess = tracktion::Renderer::renderToFile(*edit, tf->getFile(), false);
However when I try and pass parameters I get an error:
auto tf = std::make_unique<juce::TemporaryFile> (".wav");
tracktion::Renderer::Parameters params (*edit);
params.destFile = tf->getFile();
params.time = params.time.withLength (tracktion::TimeDuration::fromSeconds(4));
params.audioFormat = engine.getAudioFileFormatManager().getWavFormat();
juce::File renderedFile = tracktion::Renderer::renderToFile("Exporting audio", params);
JUCE Assertion failure in tracktion_Plugin.cpp:664
jassert (initialiseCount > 0);
Seems to be something to do with plugins not being initialised properly, but I can’t see why it should behave differently. Am I doing something wrong? Many thanks!
Tracktion Engine v3.0.0
Juce v8.0.3
