1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added StudioOne to host types list.

This commit is contained in:
jules 2013-01-16 14:08:27 +00:00
parent 29b9450fcb
commit fecaeb37cf

View file

@ -61,7 +61,8 @@ public:
MagixSamplitude, MagixSamplitude,
FruityLoops, FruityLoops,
WaveBurner, WaveBurner,
DigitalPerformer DigitalPerformer,
StudioOne
}; };
const HostType type; const HostType type;
@ -82,6 +83,7 @@ public:
bool isWaveBurner() const noexcept { return type == WaveBurner; } bool isWaveBurner() const noexcept { return type == WaveBurner; }
bool isDigitalPerformer() const noexcept { return type == DigitalPerformer; } bool isDigitalPerformer() const noexcept { return type == DigitalPerformer; }
bool isReaper() const noexcept { return type == Reaper; } bool isReaper() const noexcept { return type == Reaper; }
bool isStudioOne() const noexcept { return type == StudioOne; }
//============================================================================== //==============================================================================
static String getHostPath() static String getHostPath()
@ -111,6 +113,7 @@ private:
if (hostFilename.containsIgnoreCase ("WaveBurner")) return WaveBurner; if (hostFilename.containsIgnoreCase ("WaveBurner")) return WaveBurner;
if (hostFilename.contains ("Digital Performer")) return DigitalPerformer; if (hostFilename.contains ("Digital Performer")) return DigitalPerformer;
if (hostFilename.containsIgnoreCase ("reaper")) return Reaper; if (hostFilename.containsIgnoreCase ("reaper")) return Reaper;
if (hostPath.containsIgnoreCase ("Studio One")) return StudioOne;
#elif JUCE_WINDOWS #elif JUCE_WINDOWS
if (hostFilename.containsIgnoreCase ("Live 6.")) return AbletonLive6; if (hostFilename.containsIgnoreCase ("Live 6.")) return AbletonLive6;
@ -136,6 +139,7 @@ private:
if (hostFilename.containsIgnoreCase ("rm-host")) return MuseReceptorGeneric; if (hostFilename.containsIgnoreCase ("rm-host")) return MuseReceptorGeneric;
if (hostFilename.startsWithIgnoreCase ("Sam")) return MagixSamplitude; if (hostFilename.startsWithIgnoreCase ("Sam")) return MagixSamplitude;
if (hostFilename.startsWith ("FL")) return FruityLoops; if (hostFilename.startsWith ("FL")) return FruityLoops;
if (hostPath.containsIgnoreCase ("Studio One")) return StudioOne;
#elif JUCE_LINUX #elif JUCE_LINUX
jassertfalse // not yet done! jassertfalse // not yet done!