11namespace tracktion {
inline namespace engine
50 tempFile.overwriteTargetFileWithTemporary();
70 : Job (e, destination), source (src)
bool copyFileTo(const File &targetLocation) const
The Engine is the central class for all tracktion sessions.
RenderManager & getRenderManager() const
Returns the RenderManager instance.
AudioFileManager & getAudioFileManager() const
Returns the AudioFileManager instance.
The base class that all generator jobs derive from.
Job::Ptr getRenderJobWithoutCreating(const AudioFile &audioFile)
This will return a Ptr to an existing render job for an audio file or nullptr if no job is in progres...
bool setUpRender() override
Subclasses should override this to set-up their render process.
bool renderNextBlock() override
During a render process this will be repeatedly called.
bool completeRender() override
This is called once after all the render blocks have completed.
static Ptr getOrCreateRenderJob(Engine &e, const juce::File &source, const juce::File &destination)
Returns a job that will have been started to generate the Render described by the params.
static bool reverse(Engine &, const juce::File &source, const juce::File &destination, std::atomic< float > &progress, juce::ThreadPoolJob *job=nullptr, bool canCreateWavIntermediate=true)
Reverses a file updating a progress value and checking the exit status of a given job.
#define CRASH_TRACER
This macro adds the current location to a stack which gets logged if a crash happens.