From 321cab0c15f5c398fff2d805c261611918c34291 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 6 Feb 2023 12:08:23 +0000 Subject: [PATCH] MIDILogger: Update bus layouts to support loading in Cakewalk --- examples/Plugins/MidiLoggerPluginDemo.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/Plugins/MidiLoggerPluginDemo.h b/examples/Plugins/MidiLoggerPluginDemo.h index 7602d14549..104ef89f41 100644 --- a/examples/Plugins/MidiLoggerPluginDemo.h +++ b/examples/Plugins/MidiLoggerPluginDemo.h @@ -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" };