PMixAudioEngine::PMixAudioEngine() : doc(*this) , faustDSPFormat(doc.getLibraryPath(), File(FAUST_DRAW_PATH)) { Logger::setCurrentLogger(&logger); LOG("pMix v 0.01"); // initialise our settings file.. PropertiesFile::Options options; options.applicationName = "pMix"; options.filenameSuffix = "settings"; options.osxLibrarySubFolder = "Application Support"; #ifdef JUCE_MAC options.folderName = "pMix2"; #endif appProperties = new ApplicationProperties(); appProperties->setStorageParameters (options); formatManager.addDefaultFormats(); formatManager.addFormat (new InternalPluginFormat()); InternalPluginFormat internalFormat; internalFormat.getAllTypes (internalTypes); ScopedPointer<XmlElement> savedPluginList (getAppProperties().getUserSettings()->getXmlValue ("pluginList")); if (savedPluginList != nullptr) knownPluginList.recreateFromXml (*savedPluginList); ScopedPointer<PluginDirectoryScanner> scanner = new PluginDirectoryScanner(knownFaustDSPList, faustDSPFormat, faustDSPFormat.getDefaultLocationsToSearch(), true, File::nonexistent); LOG("Scanning Faust .dsp files..."); String pluginBeingScanned; while (scanner->scanNextFile(true, pluginBeingScanned)) { } String str(knownFaustDSPList.getNumTypes()); //LOG("found " + str + " faust .dsp files"); pluginSortMethod = (KnownPluginList::SortMethod) getAppProperties().getUserSettings()->getIntValue ("pluginSortMethod", KnownPluginList::sortByFileSystemLocation); setPluginSortMethod(pluginSortMethod); #if JUCE_MAC knownPluginList.addToBlacklist("/Library/Audio/Plug-Ins/VST/pMixPlugin.vst"); #endif knownPluginList.addChangeListener (this); }