Browse Source

PluginHostType: Add checks for auvaltool and com.apple.audio.InfoHelper

v7.0.9
reuk 4 years ago
parent
commit
755e25cb5b
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
2 changed files with 10 additions and 0 deletions
  1. +4
    -0
      modules/juce_audio_processors/utilities/juce_PluginHostType.cpp
  2. +6
    -0
      modules/juce_audio_processors/utilities/juce_PluginHostType.h

+ 4
- 0
modules/juce_audio_processors/utilities/juce_PluginHostType.cpp View File

@@ -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;


+ 6
- 0
modules/juce_audio_processors/utilities/juce_PluginHostType.h View File

@@ -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. */


Loading…
Cancel
Save