From 01ca7c71de2894da3a25a6d17d6a23bb41eee972 Mon Sep 17 00:00:00 2001 From: "lllucius@gmail.com" Date: Sun, 7 Dec 2014 02:24:50 +0000 Subject: [PATCH] Sort of fix for bugs #665 and #460 This is more of a toleration than a fix since I can't get any of the Waves plugins to display their custom views. They do work in generic view however, so I've put in a temporary hack to force all Waves plugins to use the generic view. --- src/effects/audiounits/AudioUnitEffect.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/effects/audiounits/AudioUnitEffect.cpp b/src/effects/audiounits/AudioUnitEffect.cpp index ef117c63e..82e6afbb2 100644 --- a/src/effects/audiounits/AudioUnitEffect.cpp +++ b/src/effects/audiounits/AudioUnitEffect.cpp @@ -1788,6 +1788,21 @@ bool AudioUnitEffect::PopulateUI(wxWindow *parent) mIsCarbon = false; mIsGeneric = false; + // This is a temporary hack to allow usage of effects from Waves. + // I don't know why, but they simply do not display. Could be that + // they are "prefer" 64-bit and/or Cocoa apps. I don't want to spend + // too much time trying to get them to work though since I suspect + // we'll have better luck once we upgrade to wx3 and become Cocoa-based. + // + // So, we'll use sort of a blacklist to force them to use the generic + // view. They do seem to work fine when using the generic view, but + // some will cause Audacity to crash at termination. It's not harmful, + // since it is after all files have been saved. + if (mVendor == wxT("Waves")) + { + mUseGUI = false; + } + // Create the AU editor HIViewRef auView = NULL; if (mUseGUI)