|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
Manages a set of reference counted render jobs and can be used to retrieve matching jobs or create new ones. More...
#include "tracktion_RenderManager.h"
Classes | |
| class | Job |
| The base class that all generator jobs derive from. More... | |
Public Member Functions | |
| RenderManager (Engine &) | |
| void | cleanUp () |
| Cleans up any remaining jobs - should be called before the manager is deleted. | |
| 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 progress. | |
| juce::ReferenceCountedArray< Job > | getRenderJobsWithoutCreating (const AudioFile &) |
| Returns all the jobs that may be processing the given file. | |
| int | getNumJobs () noexcept |
| Returns the number of jobs in the pool. | |
| bool | isProxyBeingGenerated (const AudioFile &proxyFile) noexcept |
| Returns true if a render is currently being performed for this AudioFile. | |
| float | getProportionComplete (const AudioFile &proxyFile, float defaultVal) noexcept |
| Returns true if a render is currently being performed for this AudioFile. | |
Static Public Member Functions | |
| static AudioFile | getAudioFileForHash (Engine &, const juce::File &directory, HashCode hash) |
| Returns the AudioFile for a particular hash. | |
| static juce::StringRef | getFileRenderPrefix () |
| Returns the prefix used for render files. | |
Public Attributes | |
| Engine & | engine |
Manages a set of reference counted render jobs and can be used to retrieve matching jobs or create new ones.
Definition at line 19 of file tracktion_RenderManager.h.
| tracktion::engine::RenderManager::RenderManager | ( | Engine & | e | ) |
Definition at line 164 of file tracktion_RenderManager.cpp.
|
override |
Definition at line 168 of file tracktion_RenderManager.cpp.
| void tracktion::engine::RenderManager::cleanUp | ( | ) |
Cleans up any remaining jobs - should be called before the manager is deleted.
Definition at line 175 of file tracktion_RenderManager.cpp.
|
static |
Returns the AudioFile for a particular hash.
If this is not valid you should then start a new job using getOrCreateRenderJob. You should always check this first, never start a new job unnecessarily.
Definition at line 194 of file tracktion_RenderManager.cpp.
|
static |
Returns the prefix used for render files.
Definition at line 165 of file tracktion_RenderManager.h.
|
noexcept |
Returns the number of jobs in the pool.
Definition at line 212 of file tracktion_RenderManager.cpp.
|
noexcept |
Returns true if a render is currently being performed for this AudioFile.
Definition at line 224 of file tracktion_RenderManager.cpp.
| juce::ReferenceCountedArray< RenderManager::Job > tracktion::engine::RenderManager::getRenderJobsWithoutCreating | ( | const AudioFile & | af | ) |
Returns all the jobs that may be processing the given file.
Definition at line 199 of file tracktion_RenderManager.cpp.
| Job::Ptr tracktion::engine::RenderManager::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 progress.
Definition at line 155 of file tracktion_RenderManager.h.
|
noexcept |
Returns true if a render is currently being performed for this AudioFile.
Definition at line 219 of file tracktion_RenderManager.cpp.
| Engine& tracktion::engine::RenderManager::engine |
Definition at line 173 of file tracktion_RenderManager.h.