TracktionEngine
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | List of all members
engine::EditRenderer Class Reference

Some useful utility functions for asyncronously rendering Edits on background threads. More...

#include <tracktion_Renderer.h>

Classes

class  Handle
 A handle to a rendering Edit. More...
 

Static Public Member Functions

static std::shared_ptr< Handlerender (Renderer::Parameters, std::function< void(tl::expected< juce::File, std::string >)> finishedCallback, std::shared_ptr< juce::AudioFormatWriter::ThreadedWriter::IncomingDataReceiver > thumbnailToUpdate={})
 Loads an Edit asyncronously on a background thread.
 

Detailed Description

Some useful utility functions for asyncronously rendering Edits on background threads.

Just call one of the render functions with the appropriate arguments.

Member Function Documentation

◆ render()

static std::shared_ptr< Handle > engine::EditRenderer::render ( Renderer::Parameters  ,
std::function< void(tl::expected< juce::File, std::string >)>  finishedCallback,
std::shared_ptr< juce::AudioFormatWriter::ThreadedWriter::IncomingDataReceiver >  thumbnailToUpdate = {} 
)
static

Loads an Edit asyncronously on a background thread.

This returns a Handle with a LoadContext which you can use to cancel the operation or poll to get progress.


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