From f1fe1c506e43f62fcdc90dee707e9b41c6b94ba5 Mon Sep 17 00:00:00 2001 From: Quentin Lamerand Date: Thu, 28 Nov 2024 23:17:13 +0100 Subject: [PATCH] add AbletonLive12 to host types --- .../juce_audio_processors/utilities/juce_PluginHostType.cpp | 3 +++ modules/juce_audio_processors/utilities/juce_PluginHostType.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/utilities/juce_PluginHostType.cpp b/modules/juce_audio_processors/utilities/juce_PluginHostType.cpp index adbfacb252dd..0fd594c894d0 100644 --- a/modules/juce_audio_processors/utilities/juce_PluginHostType.cpp +++ b/modules/juce_audio_processors/utilities/juce_PluginHostType.cpp @@ -103,6 +103,7 @@ const char* PluginHostType::getHostDescription() const noexcept case AbletonLive9: return "Ableton Live 9"; case AbletonLive10: return "Ableton Live 10"; case AbletonLive11: return "Ableton Live 11"; + case AbletonLive12: return "Ableton Live 12"; case AbletonLiveGeneric: return "Ableton Live"; case AdobeAudition: return "Adobe Audition"; case AdobePremierePro: return "Adobe Premiere"; @@ -183,6 +184,7 @@ PluginHostType::HostType PluginHostType::getHostType() if (hostPath.containsIgnoreCase ("Live 9")) return AbletonLive9; if (hostPath.containsIgnoreCase ("Live 10")) return AbletonLive10; if (hostPath.containsIgnoreCase ("Live 11")) return AbletonLive11; + if (hostPath.containsIgnoreCase ("Live 12")) return AbletonLive12; if (hostFilename.containsIgnoreCase ("Live")) return AbletonLiveGeneric; if (hostFilename.containsIgnoreCase ("Audition")) return AdobeAudition; if (hostFilename.containsIgnoreCase ("Adobe Premiere")) return AdobePremierePro; @@ -252,6 +254,7 @@ PluginHostType::HostType PluginHostType::getHostType() if (hostFilename.containsIgnoreCase ("Live 9")) return AbletonLive9; if (hostFilename.containsIgnoreCase ("Live 10")) return AbletonLive10; if (hostFilename.containsIgnoreCase ("Live 11")) return AbletonLive11; + if (hostFilename.containsIgnoreCase ("Live 12")) return AbletonLive12; if (hostFilename.containsIgnoreCase ("Live ")) return AbletonLiveGeneric; if (hostFilename.containsIgnoreCase ("Audition")) return AdobeAudition; if (hostFilename.containsIgnoreCase ("Adobe Premiere")) return AdobePremierePro; diff --git a/modules/juce_audio_processors/utilities/juce_PluginHostType.h b/modules/juce_audio_processors/utilities/juce_PluginHostType.h index 0470c3e52b13..80b8564329f5 100644 --- a/modules/juce_audio_processors/utilities/juce_PluginHostType.h +++ b/modules/juce_audio_processors/utilities/juce_PluginHostType.h @@ -63,6 +63,7 @@ class PluginHostType AbletonLive9, /**< Represents Ableton Live 9. */ AbletonLive10, /**< Represents Ableton Live 10. */ AbletonLive11, /**< Represents Ableton Live 11. */ + AbletonLive12, /**< Represents Ableton Live 12. */ AbletonLiveGeneric, /**< Represents Ableton Live. */ AdobeAudition, /**< Represents Adobe Audition. */ AdobePremierePro, /**< Represents Adobe Premiere Pro. */ @@ -130,7 +131,7 @@ class PluginHostType /** Returns true if the host is any version of Ableton Live. */ bool isAbletonLive() const noexcept { return type == AbletonLive6 || type == AbletonLive7 || type == AbletonLive8 || type == AbletonLive9 || type == AbletonLive10 || type == AbletonLive11 - || type == AbletonLiveGeneric; } + || type == AbletonLive12 || 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. */