|
SynthLab SDK
|
This object maintains a set of SynthLab-DM Dynamic Modules. More...
#include <synthlabdm.h>
Public Member Functions | |
| DynamicModuleManager () | |
| empty constructor | |
| virtual | ~DynamicModuleManager () |
| virtual deleter More... | |
| bool | loadDMConfig (std::string folderPath, SynthLab::DMConfig &config) |
| Loads the DM configuration from the config.txt file; if the file does not exist, the default config is used. More... | |
| void | setConfigData (std::string fileline, SynthLab::DMConfig &config) |
| Sets the DM configuration booleans from the config.txt file; if the file does not exist, the default config is used. | |
| uint32_t | loadAllDynamicModulesInFolder (std::string folderPath) |
| Opens a folder and loads all of the modules it finds in succession. More... | |
| uint32_t | loadAllDynamicModulesInSubFolder (std::string folderPath) |
| Opens a folder and loads all of the modules it finds in succession. More... | |
| uint32_t | loadDynamicModule (std::string modulePath) |
| Tries to load a DLL or dylib. More... | |
| void | addLoadableModule (uint32_t module) |
| bool | haveDynamicModules () |
| std::vector< std::shared_ptr< SynthLab::ModuleCore > > | getDynamicModules () |
| uint32_t | getModuleCountForType (uint32_t type) |
| void | setDoubleOscillators (bool b) |
Protected Attributes | |
| std::vector< std::shared_ptr< SynthLab::ModuleCore > > | modules |
| set of pointers fo modules | |
| std::vector< uint32_t > | loadableModules |
| set of module types that may be loaded in this synth; see synthconstants.h e.g. LFO_MODULE | |
| bool | doubleOscillatorSet = false |
This object maintains a set of SynthLab-DM Dynamic Modules.
|
virtual |
virtual deleter
The destructor clears out the shared pointers, that delete themselves just afterwards.
|
inline |
query functions
| uint32_t DynamicModuleManager::loadAllDynamicModulesInFolder | ( | std::string | folderPath | ) |
Opens a folder and loads all of the modules it finds in succession.
\ param folderPath the fully qualified path to the folder
| uint32_t DynamicModuleManager::loadAllDynamicModulesInSubFolder | ( | std::string | folderPath | ) |
Opens a folder and loads all of the modules it finds in succession.
\ param folderPath the fully qualified path to the folder
| bool DynamicModuleManager::loadDMConfig | ( | std::string | folderPath, |
| SynthLab::DMConfig & | config | ||
| ) |
Loads the DM configuration from the config.txt file; if the file does not exist, the default config is used.
loading functions
| uint32_t DynamicModuleManager::loadDynamicModule | ( | std::string | modulePath | ) |
Tries to load a DLL or dylib.
\ param modulePath the fully qualified path to the DLL or dylib file