π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Avoid even mentioning AudioUnitPluginFormat to Linux/Windows compilers.
Peter Sobot649919bdba7f
diff --git a/pedalboard/ExternalPlugin.h b/pedalboard/ExternalPlugin.hindex 825748b..28649ae 100644--- a/pedalboard/ExternalPlugin.h+++ b/pedalboard/ExternalPlugin.h@@ -134,6 +134,7 @@ static std::vector<std::string> getPluginNamesForFile(std::string filename) {std::string errorMessage = "Unable to scan plugin " + filename +": unsupported plugin format or scan failure.";+#if JUCE_PLUGINHOST_AU && JUCE_MACif constexpr (std::is_same<ExternalPluginType,juce::AudioUnitPluginFormat>::value) {auto identifiers = getAudioUnitIdentifiersFromFile(filename);@@ -148,6 +149,9 @@ static std::vector<std::string> getPluginNamesForFile(std::string filename) {} else {format.findAllTypesForFile(typesFound, filename);}+#else+ format.findAllTypesForFile(typesFound, filename);+#endifif (typesFound.isEmpty()) {throw pybind11::import_error(errorMessage);@@ -289,6 +293,7 @@ public:": plugin file not found.");}+#if JUCE_PLUGINHOST_AU && JUCE_MACif constexpr (std::is_same<ExternalPluginType,juce::AudioUnitPluginFormat>::value) {auto identifiers = getAudioUnitIdentifiersFromFile(pluginFileStripped);@@ -299,6 +304,9 @@ public:} else {format.findAllTypesForFile(typesFound, pluginFileStripped);}+#else+ format.findAllTypesForFile(typesFound, pluginFileStripped);+#endifif (!typesFound.isEmpty()) {if (typesFound.size() == 1) {