From 755e25cb5b028e9ae5fe2b1abdccc893138c0517 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 28 Feb 2022 11:55:53 +0000 Subject: [PATCH] PluginHostType: Add checks for auvaltool and com.apple.audio.InfoHelper --- .../juce_audio_processors/utilities/juce_PluginHostType.cpp | 4 ++++ .../juce_audio_processors/utilities/juce_PluginHostType.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/modules/juce_audio_processors/utilities/juce_PluginHostType.cpp b/modules/juce_audio_processors/utilities/juce_PluginHostType.cpp index eba244c398..78f7ea2346 100644 --- a/modules/juce_audio_processors/utilities/juce_PluginHostType.cpp +++ b/modules/juce_audio_processors/utilities/juce_PluginHostType.cpp @@ -98,10 +98,12 @@ const char* PluginHostType::getHostDescription() const noexcept case AdobeAudition: return "Adobe Audition"; case AdobePremierePro: return "Adobe Premiere"; case AppleGarageBand: return "Apple GarageBand"; + case AppleInfoHelper: return "com.apple.audio.InfoHelper"; case AppleLogic: return "Apple Logic"; case AppleMainStage: return "Apple MainStage"; case Ardour: return "Ardour"; case AULab: return "AU Lab"; + case AUVal: return "auval"; case AvidProTools: return "ProTools"; case BitwigStudio: return "Bitwig Studio"; case CakewalkSonar8: return "Cakewalk Sonar 8"; @@ -212,6 +214,8 @@ PluginHostType::HostType PluginHostType::getHostType() if (hostFilename.containsIgnoreCase ("pluginval")) return pluginval; if (hostFilename.containsIgnoreCase ("AudioPluginHost")) return JUCEPluginHost; if (hostFilename.containsIgnoreCase ("Vienna Ensemble Pro")) return ViennaEnsemblePro; + if (hostFilename.containsIgnoreCase ("auvaltool")) return AUVal; + if (hostFilename.containsIgnoreCase ("com.apple.audio.infohelper")) return AppleInfoHelper; if (hostIdReportedByWrapper == "com.apple.logic.pro") return AppleLogic; if (hostIdReportedByWrapper == "com.apple.garageband") return AppleGarageBand; diff --git a/modules/juce_audio_processors/utilities/juce_PluginHostType.h b/modules/juce_audio_processors/utilities/juce_PluginHostType.h index c222899fd4..cf5f0e405b 100644 --- a/modules/juce_audio_processors/utilities/juce_PluginHostType.h +++ b/modules/juce_audio_processors/utilities/juce_PluginHostType.h @@ -58,10 +58,12 @@ public: AdobeAudition, /**< Represents Adobe Audition. */ AdobePremierePro, /**< Represents Adobe Premiere Pro. */ AppleGarageBand, /**< Represents Apple GarageBand. */ + AppleInfoHelper, /**< Represents Apple com.apple.audio.InfoHelper. */ AppleLogic, /**< Represents Apple Logic Pro. */ AppleMainStage, /**< Represents Apple Main Stage. */ Ardour, /**< Represents Ardour. */ AULab, /**< Represents AU Lab. */ + AUVal, /**< Represents Apple AU validator. */ AvidProTools, /**< Represents Avid Pro Tools. */ BitwigStudio, /**< Represents Bitwig Studio. */ CakewalkSonar8, /**< Represents Cakewalk Sonar 8. */ @@ -121,10 +123,14 @@ public: || type == AbletonLiveGeneric; } /** Returns true if the host is Adobe Audition. */ bool isAdobeAudition() const noexcept { return type == AdobeAudition; } + /** Returns true if the host is com.apple.audio.InfoHelper. */ + bool isAppleInfoHelper() const noexcept { return type == AppleInfoHelper; } /** Returns true if the host is Ardour. */ bool isArdour() const noexcept { return type == Ardour; } /** Returns true if the host is AU Lab. */ bool isAULab() const noexcept { return type == AULab; } + /** Returns true if the host is auval. */ + bool isAUVal() const noexcept { return type == AUVal; } /** Returns true if the host is Bitwig Studio. */ bool isBitwigStudio() const noexcept { return type == BitwigStudio; } /** Returns true if the host is any version of Steinberg Cubase. */