1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

MIDILogger: Update bus layouts to support loading in Cakewalk

This commit is contained in:
reuk 2023-02-06 12:08:23 +00:00
parent 793df5dd3d
commit 321cab0c15
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -337,9 +337,11 @@ private:
static BusesProperties getBusesLayout()
{
// Live doesn't like to load midi-only plugins, so we add an audio output there.
return PluginHostType().isAbletonLive() ? BusesProperties().withOutput ("out", AudioChannelSet::stereo())
: BusesProperties();
// Live and Cakewalk don't like to load midi-only plugins, so we add an audio output there.
const PluginHostType host;
return host.isAbletonLive() || host.isSonar()
? BusesProperties().withOutput ("out", AudioChannelSet::stereo())
: BusesProperties();
}
ValueTree state { "state" };