From 3a9b3281e839d3ff74507ecfdb4802cafd9394e7 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 25 Feb 2023 19:40:20 +0100 Subject: [PATCH] Don't return kResultFalse when deactivating busses Validator-sama will get very upset with us if we do. --- src/wrapper/vst3/wrapper.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/wrapper/vst3/wrapper.rs b/src/wrapper/vst3/wrapper.rs index 0e4183c6..bbdd077c 100644 --- a/src/wrapper/vst3/wrapper.rs +++ b/src/wrapper/vst3/wrapper.rs @@ -316,12 +316,8 @@ impl IComponent for Wrapper

{ ) -> tresult { let current_audio_io_layout = self.inner.current_audio_io_layout.load(); - // We don't support this, and we'll just pretend to support enabling busses (even though - // they're enabled by default) in case a host requires this - if state != 1 { - return kResultFalse; - } - + // We don't support this, but the validator will get very angry with us if we let it know + // that match (type_, dir, index) { (t, d, _) if t == vst3_sys::vst::MediaTypes::kAudio as i32