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

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

#include <tracktion_EditLoader.h>

Classes

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

Static Public Member Functions

static std::shared_ptr< HandleloadEdit (Edit::Options, std::function< void(std::unique_ptr< Edit >)> editLoadedCallback)
 Loads an Edit asyncronously on a background thread.
 
static std::shared_ptr< HandleloadEdit (Engine &, juce::File, std::function< void(std::unique_ptr< Edit >)> editLoadedCallback, Edit::EditRole role=Edit::forEditing, int numUndoLevelsToStore=Edit::getDefaultNumUndoLevels())
 Loads an Edit asyncronously from a file on a background thread.
 

Detailed Description

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

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

Member Function Documentation

◆ loadEdit() [1/2]

static std::shared_ptr< Handle > engine::EditLoader::loadEdit ( Edit::Options  ,
std::function< void(std::unique_ptr< Edit >)>  editLoadedCallback 
)
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 progressstatus messages.

◆ loadEdit() [2/2]

static std::shared_ptr< Handle > engine::EditLoader::loadEdit ( Engine &  ,
juce::File  ,
std::function< void(std::unique_ptr< Edit >)>  editLoadedCallback,
Edit::EditRole  role = Edit::forEditing,
int  numUndoLevelsToStore = Edit::getDefaultNumUndoLevels() 
)
static

Loads an Edit asyncronously from a file 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: