Skip to content

Commit f1fe1c5

Browse files
committed
add AbletonLive12 to host types
1 parent 51d11a2 commit f1fe1c5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

modules/juce_audio_processors/utilities/juce_PluginHostType.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const char* PluginHostType::getHostDescription() const noexcept
103103
case AbletonLive9: return "Ableton Live 9";
104104
case AbletonLive10: return "Ableton Live 10";
105105
case AbletonLive11: return "Ableton Live 11";
106+
case AbletonLive12: return "Ableton Live 12";
106107
case AbletonLiveGeneric: return "Ableton Live";
107108
case AdobeAudition: return "Adobe Audition";
108109
case AdobePremierePro: return "Adobe Premiere";
@@ -183,6 +184,7 @@ PluginHostType::HostType PluginHostType::getHostType()
183184
if (hostPath.containsIgnoreCase ("Live 9")) return AbletonLive9;
184185
if (hostPath.containsIgnoreCase ("Live 10")) return AbletonLive10;
185186
if (hostPath.containsIgnoreCase ("Live 11")) return AbletonLive11;
187+
if (hostPath.containsIgnoreCase ("Live 12")) return AbletonLive12;
186188
if (hostFilename.containsIgnoreCase ("Live")) return AbletonLiveGeneric;
187189
if (hostFilename.containsIgnoreCase ("Audition")) return AdobeAudition;
188190
if (hostFilename.containsIgnoreCase ("Adobe Premiere")) return AdobePremierePro;
@@ -252,6 +254,7 @@ PluginHostType::HostType PluginHostType::getHostType()
252254
if (hostFilename.containsIgnoreCase ("Live 9")) return AbletonLive9;
253255
if (hostFilename.containsIgnoreCase ("Live 10")) return AbletonLive10;
254256
if (hostFilename.containsIgnoreCase ("Live 11")) return AbletonLive11;
257+
if (hostFilename.containsIgnoreCase ("Live 12")) return AbletonLive12;
255258
if (hostFilename.containsIgnoreCase ("Live ")) return AbletonLiveGeneric;
256259
if (hostFilename.containsIgnoreCase ("Audition")) return AdobeAudition;
257260
if (hostFilename.containsIgnoreCase ("Adobe Premiere")) return AdobePremierePro;

modules/juce_audio_processors/utilities/juce_PluginHostType.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class PluginHostType
6363
AbletonLive9, /**< Represents Ableton Live 9. */
6464
AbletonLive10, /**< Represents Ableton Live 10. */
6565
AbletonLive11, /**< Represents Ableton Live 11. */
66+
AbletonLive12, /**< Represents Ableton Live 12. */
6667
AbletonLiveGeneric, /**< Represents Ableton Live. */
6768
AdobeAudition, /**< Represents Adobe Audition. */
6869
AdobePremierePro, /**< Represents Adobe Premiere Pro. */
@@ -130,7 +131,7 @@ class PluginHostType
130131
/** Returns true if the host is any version of Ableton Live. */
131132
bool isAbletonLive() const noexcept { return type == AbletonLive6 || type == AbletonLive7 || type == AbletonLive8
132133
|| type == AbletonLive9 || type == AbletonLive10 || type == AbletonLive11
133-
|| type == AbletonLiveGeneric; }
134+
|| type == AbletonLive12 || type == AbletonLiveGeneric; }
134135
/** Returns true if the host is Adobe Audition. */
135136
bool isAdobeAudition() const noexcept { return type == AdobeAudition; }
136137
/** Returns true if the host is com.apple.audio.InfoHelper. */

0 commit comments

Comments
 (0)