#include <tracktion_EditClipRenderJob.h>
◆ ~EditRenderJob()
tracktion::engine::EditRenderJob::~EditRenderJob |
( |
| ) |
|
|
override |
◆ getOrCreateRenderJob() [1/2]
static Ptr tracktion::engine::EditRenderJob::getOrCreateRenderJob |
( |
Engine & |
, |
|
|
Renderer::Parameters & |
, |
|
|
bool |
deleteEdit, |
|
|
bool |
silenceOnBackup, |
|
|
bool |
reverse |
|
) |
| |
|
static |
Returns a job that will have been started to generate the Render described by the params.
To be notified of when the job completes add yourself as a listener. If the deleteEdit argument is true this will delete the Edit once it is done with it. The destFile should be the same as the params.destFile argument and is only provided so the file doesn't get deleted before creation. This job will continue to run until all references to it are deleted. Once this happens the render will be abandoned. If you delete yourself, make sure to unregister as a listener too.
◆ getOrCreateRenderJob() [2/2]
Creates a job based on a set of RenderOptions properties and a source Edit ProjectItemID.
If this method is used the Edit will be created on the background render thread and be owned by the job.
◆ getParams()
const Renderer::Parameters & tracktion::engine::EditRenderJob::getParams |
( |
| ) |
const |
|
noexcept |
Returns the parameters in use for this job.
◆ getAudioThumbnail()
juce::AudioThumbnail & tracktion::engine::EditRenderJob::getAudioThumbnail |
( |
| ) |
|
Returns an audio thumbnail that will be updated with the progress of the render operation.
Don't hang onto this however as it is owned by the job and you should create your own thumbnail from the file once the job has finished.
◆ isMidi()
bool tracktion::engine::EditRenderJob::isMidi |
( |
| ) |
const |
|
noexcept |
Returns true if this job is rendering MIDI.
This can be used to determine if the AudioThumbnail should be used to generate a thumbnail or some other means.
◆ getResult()
Renderer::RenderResult & tracktion::engine::EditRenderJob::getResult |
( |
| ) |
|
Returns the result of this render.
Only valid once the job has completed.
◆ getLastError()
juce::String tracktion::engine::EditRenderJob::getLastError |
( |
| ) |
const |
◆ setUpRender()
bool tracktion::engine::EditRenderJob::setUpRender |
( |
| ) |
|
|
overrideprotectedvirtual |
Subclasses should override this to set-up their render process.
Return true if the set-up completed successfully and the rest of the render callbacks should be called, false if there was a problem and the render should be stopped.
Implements tracktion::engine::RenderManager::Job.
◆ renderNextBlock()
bool tracktion::engine::EditRenderJob::renderNextBlock |
( |
| ) |
|
|
overrideprotectedvirtual |
During a render process this will be repeatedly called.
Return true once all the blocks have completed, false if this needs to be called again.
Implements tracktion::engine::RenderManager::Job.
◆ completeRender()
bool tracktion::engine::EditRenderJob::completeRender |
( |
| ) |
|
|
overrideprotectedvirtual |
This is called once after all the render blocks have completed.
Subclasses should override this to finish off their render by closing files and etc. returning true if everything completed successfully, false otherwise.
Implements tracktion::engine::RenderManager::Job.
◆ setLastError()
void tracktion::engine::EditRenderJob::setLastError |
( |
const juce::String & |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: