Update of /cvsroot/audacity/audacity-src/src/effects/VST
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv31834/src/effects/VST

Modified Files:
        VSTEffect.cpp 
Log Message:
Add preference to enable/disable VST GUI mode.

Index: VSTEffect.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/VST/VSTEffect.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- VSTEffect.cpp       20 May 2009 06:33:45 -0000      1.33
+++ VSTEffect.cpp       21 May 2009 04:42:05 -0000      1.34
@@ -37,6 +37,7 @@
 #endif
 
 #include "../../FileNames.h"
+#include "../../Prefs.h"
 #include "../../xml/XMLFileReader.h"
 #include "../../xml/XMLWriter.h"
 #include "FileDialog.h"
@@ -117,7 +118,8 @@
    mEffect(effect),
    mAEffect(aeffect)
 {
-   if (mAEffect->flags & effFlagsHasEditor) {
+   bool gui = (gPrefs->Read(wxT("/VST/GUI"), (long) true) != 0);
+   if (gui && mAEffect->flags & effFlagsHasEditor) {
       BuildFancy();
    }
    else {


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to