|
Krotos Modules 3
|
Helper class for handling audio files. More...
#include <AssetManager.h>
Public Member Functions | |
| AssetManager () | |
Static Public Member Functions | |
| static bool | isFactoryContentInstalled (const String &dirPath, const int expectedDirCount) |
| Check if specific factory content is installed. | |
| static File | getManifestDirectory () |
| static String | readFactorySamplesPath () |
| static bool | editFactorySamplesPath (const String &, const bool) |
| static File | getSystemTempDirectory () |
| static File | newTempDirectory (const String &) |
| static File | getEULADirectory () |
| static File | getManualDirectory () |
| static File | getDragAndDropPathDotTxt () |
| static bool | editDragAndDropPath (const String &) |
| static String | readDragAndDropPath () |
| static File | getDefaultDragAndDropPath () |
| static File | getDLC1AssetDirectory () |
| static File | getSubscriberAssetDirectory () |
| static File | getAssetDirectory () |
| static File | getPluginDirectory () |
| static File | getUserDataDirectory () |
| Returns the user data directory, this will be a named manufacturer / plugin subfolder under the File::userApplicationDirectory specialLocationType. | |
| static String | checkSamplePaths (const File &) |
| static Array< File > | loadFiles (const StringArray &, const bool, const bool willLoadSpecificFiles) |
| static String | convertFilePathString (const String &) |
| static File | convertFilePath (const String &) |
| static String | convertFilePathToOSX (const String &path) |
| static void | destroyTempDirs () |
| static void | deleteEmbeddingsCacheFile () |
| static void | deleteEmbeddingsStatusFile () |
| static File | getMLEmbeddingsFile () |
Static Public Attributes | |
| static const String | SupportedAudioTypes |
Private Member Functions | |
| void | initializeAssetResources () |
Static Private Member Functions | |
| static bool | testFactoryAssetsRelocation (const String &, const String &) |
| static bool | copyFactoryAssets (const String &, const String &) |
| static bool | cleanUpFactoryAssetsRelocation (const String &) |
| static File | getSamplesPathDotTxt () |
Helper class for handling audio files.
This class contains functions for file handling for new imports and within presets.
Audio asset processing and handling should be done with functions within this class before passing to Kwidgets which utilise audio file import.
| krotos::AssetManager::AssetManager | ( | ) |
Constructor.
|
static |
Check incoming sample paths for missing files.
|
staticprivate |
Delete old Factory Assets dir, never call this outside of wrapper function editFactorySamplesPath
|
static |
|
static |
Check incoming sample paths and convert to relevant OS file system.
|
static |
Converts path to OSX, even if its a windows build
|
staticprivate |
Copy Factory Assets dir to new samplesPath.txt path, never call this outside of wrapper function editFactorySamplesPath
|
static |
Delete embeddings cache used by TextToPreset NOT FOR PUBLIC BUILDS!
|
static |
Delete embeddings status used by TextToPreset NOT FOR PUBLIC BUILDS!
|
static |
Destroy ALL temp directories NOT FOR PUBLIC BUILDS!
|
static |
Changes custom location for DragAndDrop output dir
|
static |
Changes custom location for Factory Assets dir
|
static |
Get the system-specific factory asset directory.
|
static |
Get the Kwidget_Recorder output directory
|
static |
Get the system-specific factory asset DLC1 directory.
|
static |
Returns dragAndDropPath.txt, holds custom asset path root dir - should only be used in AssetManager, use readDragAndDropOutputPath if you need the path
|
static |
Get the directory for EULA resource
|
static |
Get the directory for manifest storage
|
static |
Get the directory for manual resource
|
static |
Get the full path for the Machine Learning embeddings file
|
static |
Get the Deafult/legacy factory asset directory.
|
staticprivate |
Returns samplesPath.txt, holds custom asset path root dir - should only be used in AssetManager, use readFactorySamplesPath if you need the path
|
static |
Get the system-specific subscriber factory asset directory.
|
static |
Returns temp directory for this km3 plugin
|
static |
Returns the user data directory, this will be a named manufacturer / plugin subfolder under the File::userApplicationDirectory specialLocationType.
|
private |
Initialise AssetManager directories, disabled for unit testing
|
static |
Check if specific factory content is installed.
| dirPath | The directory path to check for factory content. |
| expectedDirCount | The expected number of directories that should be present. |
|
static |
Attempts to load a list of sounds from the paths in StringArray& files Returns the number of files successfully loaded
|
static |
Returns a new temp directory
|
static |
Returns custom location for DragAndDrop recordings from dragAndDropPath.txt
|
static |
Returns custom location for Factory Assets dir from samplesPath.txt
|
staticprivate |
Test Factory Assets dir relocation, never call this outside of wrapper function editFactorySamplesPath
|
static |
File extensions include wav, aif, aiff, flac, ogg, kaf