[PD-cvs] externals/grill/vst/src Editor.h,NONE,1.1 EditorWin.cpp,NONE,1.1 VstHost.cpp,1.5,1.6 VstHost.h,1.3,1.4 main.cpp,1.11,1.12 main.h,1.4,1.5 vst.rc,1.2,1.3 EditorThread.cpp,1.3,NONE EditorThread.h,1.1,NONE PopupWindow.cpp,1.2,NONE PopupWindow.h,1.1,NONE Resource.h,1.2,NONE StdAfx.cpp,1.2,NONE StdAfx.h,1.2,NONE vst.h,1.2,NONE

xovo at users.sourceforge.net xovo at users.sourceforge.net
Fri Jan 23 05:21:42 CET 2004


Update of /cvsroot/pure-data/externals/grill/vst/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12801/src

Modified Files:
	VstHost.cpp VstHost.h main.cpp main.h vst.rc 
Added Files:
	Editor.h EditorWin.cpp 
Removed Files:
	EditorThread.cpp EditorThread.h PopupWindow.cpp PopupWindow.h 
	Resource.h StdAfx.cpp StdAfx.h vst.h 
Log Message:
 ""

--- NEW FILE: Editor.h ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: EditorWin.cpp ---
(This appears to be a binary file; contents omitted.)

Index: VstHost.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/vst/src/VstHost.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** VstHost.cpp	29 Oct 2003 03:41:36 -0000	1.5
--- VstHost.cpp	23 Jan 2004 04:20:36 -0000	1.6
***************
*** 1,9 ****
! #include "stdafx.h"
! #include "EditorThread.h"
  #include "VstHost.h"
- #include "PopupWindow.h"
  #include "vst\aeffeditor.h"
  #include "vst\aeffectx.h"
! #include <flext.h>
  
  VstTimeInfo VSTPlugin::_timeInfo;
--- 1,17 ----
! /* 
! vst~ - VST plugin object for PD 
! based on the work of Jarno Seppänen and Mark Williamson
! 
! Copyright (c)2003-2004 Thomas Grill (xovo at gmx.net)
! For information on usage and redistribution, and for a DISCLAIMER OF ALL
! WARRANTIES, see the file, "license.txt," in this distribution.  
! */
! 
! #include "Editor.h"
  #include "VstHost.h"
  #include "vst\aeffeditor.h"
  #include "vst\aeffectx.h"
! 
! using namespace std;
  
  VstTimeInfo VSTPlugin::_timeInfo;
***************
*** 17,20 ****
--- 25,29 ----
  VSTPlugin::VSTPlugin():
      posx(0),posy(0),
+     hwnd(NULL),
      _editor(false)
  {
***************
*** 25,32 ****
  	overwrite = false;
  //    wantidle = false;
- 	 w = GetForegroundWindow();
  //	 show_params = false;
  	 _midichannel = 0;
- 	 edited = false;
  }
  
--- 34,39 ----
***************
*** 39,52 ****
  int VSTPlugin::Instance( const char *dllname)
  {
! 	h_dll=LoadLibrary(dllname);
  
! 	if(h_dll==NULL)	
! 	{
  		return VSTINSTANCE_ERR_NO_VALID_FILE;
  	}
  //	post("Loaded library %s" , dllname);
  	PVSTMAIN main = (PVSTMAIN)GetProcAddress(h_dll,"main");
! 	if(!main)
! 	{	
  		FreeLibrary(h_dll);
  		_pEffect=NULL;
--- 46,58 ----
  int VSTPlugin::Instance( const char *dllname)
  {
! 	h_dll = LoadLibrary(dllname);
  
! 	if(!h_dll) {
  		return VSTINSTANCE_ERR_NO_VALID_FILE;
  	}
+ 
  //	post("Loaded library %s" , dllname);
  	PVSTMAIN main = (PVSTMAIN)GetProcAddress(h_dll,"main");
! 	if(!main) {	
  		FreeLibrary(h_dll);
  		_pEffect=NULL;
***************
*** 58,63 ****
  	_pEffect = main((audioMasterCallback)&(this->Master));
  	
! 	if(!_pEffect)
! 	{
  		post("VST plugin : unable to create effect");
  		FreeLibrary(h_dll);
--- 64,68 ----
  	_pEffect = main((audioMasterCallback)&(this->Master));
  	
! 	if(!_pEffect) {
  		post("VST plugin : unable to create effect");
  		FreeLibrary(h_dll);
***************
*** 67,72 ****
  	}
  	
! 	if(  _pEffect->magic!=kEffectMagic)
! 	{
  		post("VST plugin : Instance query rejected by 0x%.8X\n",(int)_pEffect);
  		FreeLibrary(h_dll);
--- 72,76 ----
  	}
  	
! 	if(  _pEffect->magic!=kEffectMagic) {
  		post("VST plugin : Instance query rejected by 0x%.8X\n",(int)_pEffect);
  		FreeLibrary(h_dll);
***************
*** 91,115 ****
  
  	
! 	if (!Dispatch( effGetProductString, 0, 0, &_sProductName, 0.0f))
! 	{
! 		CString str1(dllname);
! 		CString str2 = str1.Mid(str1.ReverseFind('\\')+1);
! 		int snip = str2.Find('.');
! 		if ( snip != -1 )
! 		{
! 			str1 = str2.Left( snip );
! 		}
  		else
- 		{
  			str1 = str2;
! 		}
! 		strcpy(_sProductName,str1);
! 
  	}
  	
! 	if (!_pEffect->dispatcher(_pEffect, effGetVendorString, 0, 0, &_sVendorName, 0.0f))
! 	{
  		strcpy(_sVendorName, "Unknown vendor");
  	}
  	_version = _pEffect->version;
  	_isSynth = (_pEffect->flags & effFlagsIsSynth)?true:false;
--- 95,113 ----
  
  	
! 	if (!Dispatch( effGetProductString, 0, 0, &_sProductName, 0.0f)) {
! 		string str1(dllname);
! 		string str2 = str1.substr(str1.rfind('\\')+1);
! 		int snip = str2.find('.');
!         if( snip != string::npos )
! 			str1 = str2.substr(0,snip);
  		else
  			str1 = str2;
! 		strcpy(_sProductName,str1.c_str());
  	}
  	
! 	if (!_pEffect->dispatcher(_pEffect, effGetVendorString, 0, 0, &_sVendorName, 0.0f)) {
  		strcpy(_sVendorName, "Unknown vendor");
  	}
+ 
  	_version = _pEffect->version;
  	_isSynth = (_pEffect->flags & effFlagsIsSynth)?true:false;
***************
*** 122,127 ****
  	
  	
- 
- 
  	//keep plugin name
  	instantiated=true;
--- 120,123 ----
***************
*** 165,170 ****
  void VSTPlugin::Free() // Called also in destruction
  {
! 	if(instantiated)
! 	{
  		instantiated=false;
  		post("VST plugin : Free query 0x%.8X\n",(int)_pEffect);
--- 161,167 ----
  void VSTPlugin::Free() // Called also in destruction
  {
!     if(IsEdited()) StopEditor(this);
! 
! 	if(instantiated) {
  		instantiated=false;
  		post("VST plugin : Free query 0x%.8X\n",(int)_pEffect);
***************
*** 305,309 ****
  long VSTPlugin::Master(AEffect *effect, long opcode, long index, long value, void *ptr, float opt)
  {
! #if 0 //def FLEXT_DEBUG
      if(opcode != audioMasterGetTime)
  	post("VST plugin call to host dispatcher: Eff: 0x%.8X, Opcode = %d, Index = %d, Value = %d, PTR = %.8X, OPT = %.3f\n",(int)effect, opcode,index,value,(int)ptr,opt);
--- 302,313 ----
  long VSTPlugin::Master(AEffect *effect, long opcode, long index, long value, void *ptr, float opt)
  {
! #if 0
!     if(!effect) {
!         FLEXT_LOG("effect = NULL");
!         return 0;
!     }
! #endif
! 
! #ifdef FLEXT_DEBUG
      if(opcode != audioMasterGetTime)
  	post("VST plugin call to host dispatcher: Eff: 0x%.8X, Opcode = %d, Index = %d, Value = %d, PTR = %.8X, OPT = %.3f\n",(int)effect, opcode,index,value,(int)ptr,opt);
***************
*** 457,470 ****
  	if(instantiated) { 	
          if(open) {
! 		    if ( HasEditor() && !edited) {			
! 			    edited = true;
! 			    b =  new CEditorThread();	
! 			    b->SetPlugin( this);
! 			    b->CreateThread();			
! 		    }
!         }
!         else {
!             if (HasEditor() && edited) b->Close();
          }
  	}
  }
--- 461,469 ----
  	if(instantiated) { 	
          if(open) {
! 		    if(HasEditor() && !IsEdited())
!                 StartEditor(this);
          }
+         else if(IsEdited())
+             StopEditor(this);
  	}
  }
***************
*** 472,481 ****
  void VSTPlugin::visible(bool vis)
  {	
! 	if(instantiated && edited) b->Show(vis);
  }
  
  void VSTPlugin::EditorIdle()
  {
! 	Dispatch(effEditIdle,0,0, w,0.0f);			
  }
  
--- 471,481 ----
  void VSTPlugin::visible(bool vis)
  {	
! 	if(instantiated && IsEdited()) ShowEditor(this,vis);
  }
  
  void VSTPlugin::EditorIdle()
  {
!     FLEXT_ASSERT(hwnd != NULL);
! 	Dispatch(effEditIdle,0,0, hwnd,0.0f);			
  }
  
***************
*** 494,504 ****
  void VSTPlugin::SetEditWindow(HWND h)
  {
! 	w = h;	
! 	Dispatch(effEditOpen,0,0, w,0.0f);							
  }
  
  void VSTPlugin::OnEditorClose()
  {
! 	Dispatch(effEditClose,0,0, w,0.0f);					
  }
  
--- 494,511 ----
  void VSTPlugin::SetEditWindow(HWND h)
  {
! 	hwnd = h;	
!     FLEXT_ASSERT(hwnd != NULL);
! 	Dispatch(effEditOpen,0,0, hwnd,0.0f);							
  }
  
  void VSTPlugin::OnEditorClose()
  {
!     FLEXT_ASSERT(hwnd != NULL);
! 	Dispatch(effEditClose,0,0, hwnd,0.0f);					
! }
! 
! void VSTPlugin::StopEditing()
! {
!     hwnd = NULL;
  }
  
***************
*** 561,567 ****
  		return 0;
  }
- 
- void VSTPlugin::StopEditing()
- {
- 	edited = false;
- }
--- 568,569 ----

Index: VstHost.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/vst/src/VstHost.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** VstHost.h	4 Mar 2003 04:40:14 -0000	1.3
--- VstHost.h	23 Jan 2004 04:20:38 -0000	1.4
***************
*** 1,7 ****
  #ifndef _VSTPLUGIN_HOST
  #define _VSTPLUGIN_HOST
  
  #include "Vst\AEffectx.h"
! #include <afxcoll.h>
  #define MAX_EVENTS		64
  #define MAX_INOUTS		8
--- 1,23 ----
+ /* 
+ vst~ - VST plugin object for PD 
+ based on the work of Jarno Seppänen and Mark Williamson
+ 
+ Copyright (c)2003-2004 Thomas Grill (xovo at gmx.net)
+ For information on usage and redistribution, and for a DISCLAIMER OF ALL
+ WARRANTIES, see the file, "license.txt," in this distribution.  
+ */
+ 
  #ifndef _VSTPLUGIN_HOST
  #define _VSTPLUGIN_HOST
  
  #include "Vst\AEffectx.h"
! #include <flext.h>
! 
! #if FLEXT_OS == FLEXT_OS_WIN
! #include <windows.h>
! #else
! #error Platform not supported!
! #endif
! 
  #define MAX_EVENTS		64
  #define MAX_INOUTS		8
***************
*** 24,31 ****
  typedef HWND (*GETWIN)(void);
  
! class VSTPlugin 
  {
  public:
- 	void StopEditing();
  	int GetNumCategories();
  	bool GetProgramName( int cat, int p , char* buf);
--- 40,47 ----
  typedef HWND (*GETWIN)(void);
  
! class VSTPlugin:
!     public flext
  {
  public:
  	int GetNumCategories();
  	bool GetProgramName( int cat, int p , char* buf);
***************
*** 36,42 ****
  	bool ShowParams();
  	void SetShowParameters( bool s);
! 	void OnEditorClose();
  	void SetEditWindow( HWND h );
! 	CEditorThread* b;
  	RECT GetEditorRect();
  	void EditorIdle();
--- 52,61 ----
  	bool ShowParams();
  	void SetShowParameters( bool s);
! 
  	void SetEditWindow( HWND h );
! 	void StopEditing();
! 	void OnEditorClose();
!     HWND EditorHandle() { return hwnd; }
! 
  	RECT GetEditorRect();
  	void EditorIdle();
***************
*** 114,120 ****
  	int _instance;		// Remove when Changing the FileFormat.
  
- 	HWND w;
- 
- 
      void setPos(int x,int y) { posx = x; posy = y; }
      void setX(int x) { posx = x; }
--- 133,136 ----
***************
*** 123,127 ****
      int getY() const { return posy; }
  
!     bool Edited() const { return edited; }
  
  protected:
--- 139,143 ----
      int getY() const { return posy; }
  
!     bool IsEdited() const { return hwnd != NULL; }
  
  protected:
***************
*** 129,132 ****
--- 145,150 ----
  	HMODULE h_dll;
  	HMODULE h_winddll;
+ 	HWND hwnd;
+ 
  
  	char _sProductName[64];
***************
*** 146,158 ****
  	bool overwrite;
  
- 
- 
  private:
      int posx,posy;
- 	bool edited; //,wantidle;
  	bool show_params;
  	static float sample_rate;
  };
  
! 
! #endif // _VSTPLUGIN_HOST
\ No newline at end of file
--- 164,172 ----
  	bool overwrite;
  
  private:
      int posx,posy;
  	bool show_params;
  	static float sample_rate;
  };
  
! #endif // _VSTPLUGIN_HOST

Index: main.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/vst/src/main.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** main.cpp	13 Dec 2003 03:41:33 -0000	1.11
--- main.cpp	23 Jan 2004 04:20:40 -0000	1.12
***************
*** 1,17 ****
  /* 
! 
! vst - VST plugin object for PD 
  based on the work of Jarno Seppänen and Mark Williamson
  
! Copyright (c)2003 Thomas Grill (xovo at gmx.net)
  For information on usage and redistribution, and for a DISCLAIMER OF ALL
  WARRANTIES, see the file, "license.txt," in this distribution.  
- 
  */
  
  #include "main.h"
- #include "vst.h"
  
! #include "EditorThread.h"
  #include "VstHost.h"
  
--- 1,14 ----
  /* 
! vst~ - VST plugin object for PD 
  based on the work of Jarno Seppänen and Mark Williamson
  
! Copyright (c)2003-2004 Thomas Grill (xovo at gmx.net)
  For information on usage and redistribution, and for a DISCLAIMER OF ALL
  WARRANTIES, see the file, "license.txt," in this distribution.  
  */
  
  #include "main.h"
  
! #include "Editor.h"
  #include "VstHost.h"
  
***************
*** 20,41 ****
  #include <io.h>
  
! #define VST_VERSION "0.1.0pre7"
! 
! #if 0
! /* ----- MFC stuff ------------- */
! 
! BEGIN_MESSAGE_MAP(CVstApp, CWinApp)
! 	//{{AFX_MSG_MAP(CVstApp)
! 		// NOTE - the ClassWizard will add and remove mapping macros here.
! 		//    DO NOT EDIT what you see in these blocks of generated code!
! 	//}}AFX_MSG_MAP
! END_MESSAGE_MAP()
  
- CVstApp::CVstApp() {}
  
! CVstApp theApp;
  
- /* ----- MFC stuff ------------- */
- #endif
  
  class vst:
--- 17,26 ----
  #include <io.h>
  
! #include <string>
! using namespace std;
  
  
! #define VST_VERSION "0.1.0pre8"
  
  
  class vst:
***************
*** 54,63 ****
      BL ms_plug(I argc,const A *argv);
      BL ms_plug(const AtomList &args) { return ms_plug(args.Count(),args.Atoms()); }
!     V mg_plug(AtomList &sym) const { sym(1); SetString(sym[0],plugname); }
  
!     V ms_edit(BL on);
!     V mg_edit(BL &ed) { ed = plug && plug->Edited(); }
      V mg_editor(BL &ed) { ed = plug && plug->HasEditor(); }
!     V ms_vis(BL vis);
  
      V mg_winx(I &x) const { x = plug?plug->getX():0; }
--- 39,48 ----
      BL ms_plug(I argc,const A *argv);
      BL ms_plug(const AtomList &args) { return ms_plug(args.Count(),args.Atoms()); }
!     V mg_plug(AtomList &sym) const { sym(1); SetString(sym[0],plugname.c_str()); }
  
!     V ms_edit(BL on) { if(plug) plug->edit(on); }
!     V mg_edit(BL &ed) { ed = plug && plug->IsEdited(); }
      V mg_editor(BL &ed) { ed = plug && plug->HasEditor(); }
!     V ms_vis(BL vis) { if(plug) plug->visible(vis); }
  
      V mg_winx(I &x) const { x = plug?plug->getX():0; }
***************
*** 99,103 ****
  
      VSTPlugin *plug;
!     CString plugname;
      BL echoparam,visible;
  
--- 84,88 ----
  
      VSTPlugin *plug;
!     string plugname;
      BL echoparam,visible;
  
***************
*** 159,169 ****
  V vst::Setup(t_classid c)
  {
- #if FLEXT_OS == FLEXT_OS_WIN
-     AFX_MANAGE_STATE(AfxGetStaticModuleState());
-     AfxOleInit( );
- #endif
- 
      post("");
! 	post("vst~ %s - VST plugin object, (C)2003 Thomas Grill",VST_VERSION);
  	post("based on the work of Jarno Seppänen and Mark Williamson");
  	post("");
--- 144,149 ----
  V vst::Setup(t_classid c)
  {
      post("");
! 	post("vst~ %s - VST plugin object, (C)2003-04 Thomas Grill",VST_VERSION);
  	post("based on the work of Jarno Seppänen and Mark Williamson");
  	post("");
***************
*** 204,207 ****
--- 184,189 ----
  	FLEXT_CADDATTR_GET(c,"version",mg_plugversion);
  	FLEXT_CADDATTR_GET(c,"synth",mg_issynth);
+ 
+     SetupEditor();
  }
  
***************
*** 280,288 ****
  }
  
! static const C *findFilePath(const C *path,const C *dllname)
  {
  	CFileFind finder;
- 	_chdir( path );
- 
  	if(finder.FindFile( dllname ))
  		return path;
--- 262,278 ----
  }
  
! static string findFilePath(const string &path,const string &dllname)
  {
+ 	_chdir( path.c_str() );
+ #if FLEXT_OS == FLEXT_OS_WIN
+     WIN32_FIND_DATA data;
+     HANDLE fh = FindFirstFile(dllname.c_str(),&data);
+     if(fh != INVALID_HANDLE_VALUE) {
+         FindClose(fh);
+         return path;
+     }
+ #endif
+ /*
  	CFileFind finder;
  	if(finder.FindFile( dllname ))
  		return path;
***************
*** 302,306 ****
  		}
  	}
! 	return NULL;
  }
  
--- 292,298 ----
  		}
  	}
! */
!    
!     return string();
  }
  
***************
*** 310,322 ****
      ClearPlug();
  
!     plugname.Empty();
  	C buf[255];	
  	for(I i = 0; i < argc; i++) {
  		if(i > 0) plugname += ' ';
  		GetAString(argv[i],buf,sizeof buf);
  		plugname += buf;
  	}
!     plugname.MakeLower();
!     if(!plugname.GetLength()) return false;
  
      plug = new VSTPlugin;
--- 302,315 ----
      ClearPlug();
  
!     plugname.clear();
  	C buf[255];	
  	for(I i = 0; i < argc; i++) {
  		if(i > 0) plugname += ' ';
  		GetAString(argv[i],buf,sizeof buf);
+         strlwr(buf);
  		plugname += buf;
  	}
! 
!     if(!plugname.length()) return false;
  
      plug = new VSTPlugin;
***************
*** 330,334 ****
  
  	// try loading the dll from the raw filename 
! 	if ((loaderr = plug->Instance(plugname)) == VSTINSTANCE_NO_ERROR) {
  		FLEXT_LOG("raw filename loaded fine");
  		lf = true;
--- 323,327 ----
  
  	// try loading the dll from the raw filename 
! 	if ((loaderr = plug->Instance(plugname.c_str())) == VSTINSTANCE_NO_ERROR) {
  		FLEXT_LOG("raw filename loaded fine");
  		lf = true;
***************
*** 337,341 ****
      if(!lf) { // try finding it on the PD path
  	    C *name,dir[1024];
! 	    I fd = open_via_path("",plugname,".dll",dir,&name,sizeof(dir)-1,0);
  	    if(fd > 0) close(fd);
  	    else name = NULL;
--- 330,334 ----
      if(!lf) { // try finding it on the PD path
  	    C *name,dir[1024];
! 	    I fd = open_via_path("",plugname.c_str(),".dll",dir,&name,sizeof(dir)-1,0);
  	    if(fd > 0) close(fd);
  	    else name = NULL;
***************
*** 346,354 ****
  	        if(dir == name) strcpy(dir,".");
          
!             CString dllname(dir);
              dllname += "\\";
              dllname += name;
  
! 	        lf = (loaderr = plug->Instance(dllname)) == VSTINSTANCE_NO_ERROR;
          }
      }
--- 339,347 ----
  	        if(dir == name) strcpy(dir,".");
          
!             string dllname(dir);
              dllname += "\\";
              dllname += name;
  
! 	        lf = (loaderr = plug->Instance(dllname.c_str())) == VSTINSTANCE_NO_ERROR;
          }
      }
***************
*** 357,362 ****
  		C *vst_path = getenv ("VST_PATH");
  
! 		CString dllname(plugname);
! 		if(dllname.Find(".dll") == -1) dllname += ".dll";			
  
  		if(vst_path) {
--- 350,355 ----
  		C *vst_path = getenv ("VST_PATH");
  
! 		string dllname(plugname);
! 		if(dllname.find(".dll") == -1) dllname += ".dll";			
  
  		if(vst_path) {
***************
*** 366,381 ****
  			char *tok = strtok( tok_path , ";" );
  			while( tok != NULL ) {
! 				CString abpath( tok );
! 				if( abpath.Right( 1 ) != _T("\\") ) abpath += "\\";
  
!         		FLEXT_LOG1("trying VST_PATH %s",(const C *)abpath);
  
! 				const char * realpath = findFilePath( abpath , dllname );				
  				//post( "findFilePath( %s , %s ) = %s\n" , abpath , dllname , realpath );
! 				if ( realpath != NULL ) {
! 				    CString rpath( realpath );
! 					rpath += plugname;
!             		FLEXT_LOG1("trying %s",(const C *)rpath);
! 					if((loaderr = plug->Instance( rpath )) == VSTINSTANCE_NO_ERROR ) {
                  		FLEXT_LOG("plugin loaded via VST_PATH");
  						lf = true;
--- 359,373 ----
  			char *tok = strtok( tok_path , ";" );
  			while( tok != NULL ) {
! 				string abpath( tok );
! 				if( abpath[abpath.length()-1] != '\\' ) abpath += "\\";
  
!         		FLEXT_LOG1("trying VST_PATH %s",(const C *)abpath.c_str());
  
! 				string realpath = findFilePath( abpath , dllname );				
  				//post( "findFilePath( %s , %s ) = %s\n" , abpath , dllname , realpath );
! 				if ( realpath.length() ) {
! 					realpath += plugname;
!             		FLEXT_LOG1("trying %s",(const C *)realpath.c_str());
! 					if((loaderr = plug->Instance( realpath.c_str() )) == VSTINSTANCE_NO_ERROR ) {
                  		FLEXT_LOG("plugin loaded via VST_PATH");
  						lf = true;
***************
*** 602,625 ****
  
  
- //!	display an editor 
- V vst::ms_edit(BL on)
- {
- #if FLEXT_OS == FLEXT_OS_WIN
- 	AFX_MANAGE_STATE(AfxGetStaticModuleState());
- #endif
- 
-     if(plug) plug->edit(on);
- }
- 
- V vst::ms_vis(BL vis)
- {
- #if FLEXT_OS == FLEXT_OS_WIN
- 	AFX_MANAGE_STATE(AfxGetStaticModuleState());
- #endif
- 
-    if(plug) plug->visible(vis);
- }
- 
- 
  V vst::display_parameter(I param,BL showparams)
  {
--- 594,597 ----

Index: main.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/vst/src/main.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** main.h	31 Mar 2003 02:41:01 -0000	1.4
--- main.h	23 Jan 2004 04:20:41 -0000	1.5
***************
*** 1,11 ****
  /* 
! 
! vst - VST plugin object for PD 
  based on the work of Jarno Seppänen and Mark Williamson
  
! Copyright (c) 2003 Thomas Grill (xovo at gmx.net)
  For information on usage and redistribution, and for a DISCLAIMER OF ALL
  WARRANTIES, see the file, "license.txt," in this distribution.  
- 
  */
  
--- 1,9 ----
  /* 
! vst~ - VST plugin object for PD 
  based on the work of Jarno Seppänen and Mark Williamson
  
! Copyright (c)2003-2004 Thomas Grill (xovo at gmx.net)
  For information on usage and redistribution, and for a DISCLAIMER OF ALL
  WARRANTIES, see the file, "license.txt," in this distribution.  
  */
  
***************
*** 17,26 ****
  #include <flext.h>
  
! #if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 402)
! #error You need at least flext version 0.4.2
  #endif
  
  #if FLEXT_OS == FLEXT_OS_WIN
! #include "stdafx.h"
  #else
  #error Platform not supported!
--- 15,24 ----
  #include <flext.h>
  
! #if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 405)
! #error You need at least flext version 0.4.5
  #endif
  
  #if FLEXT_OS == FLEXT_OS_WIN
! //
  #else
  #error Platform not supported!

Index: vst.rc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/vst/src/vst.rc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** vst.rc	31 Mar 2003 02:41:01 -0000	1.2
--- vst.rc	23 Jan 2004 04:20:44 -0000	1.3
***************
*** 1,3 ****
! //Microsoft Developer Studio generated resource script.
  //
  #include "resource.h"
--- 1,3 ----
! // Microsoft Visual C++ generated resource script.
  //
  #include "resource.h"
***************
*** 22,26 ****
  #endif //_WIN32
  
- #ifndef _MAC
  /////////////////////////////////////////////////////////////////////////////
  //
--- 22,25 ----
***************
*** 45,60 ****
          BLOCK "040904b0"
          BEGIN
!             VALUE "Comments", "\0"
!             VALUE "CompanyName", "\0"
!             VALUE "FileDescription", "vst~ external\0"
!             VALUE "FileVersion", "1, 0, 0, 1\0"
!             VALUE "InternalName", "vst~\0"
!             VALUE "LegalCopyright", "Copyright (C) 2003\0"
!             VALUE "LegalTrademarks", "\0"
!             VALUE "OriginalFilename", "vst~.DLL\0"
!             VALUE "PrivateBuild", "\0"
!             VALUE "ProductName", "VST plugin object\0"
!             VALUE "ProductVersion", "1, 0, 0, 1\0"
!             VALUE "SpecialBuild", "\0"
          END
      END
--- 44,54 ----
          BLOCK "040904b0"
          BEGIN
!             VALUE "FileDescription", "vst~ external"
!             VALUE "FileVersion", "0,1, 0, 8"
!             VALUE "InternalName", "vst~"
!             VALUE "LegalCopyright", "Copyright (C) 2003-2004 Thomas Grill"
!             VALUE "OriginalFilename", "vst~.DLL"
!             VALUE "ProductName", "VST plugin object"
!             VALUE "ProductVersion", "0, 1, 0, 8"
          END
      END
***************
*** 65,70 ****
  END
  
- #endif    // !_MAC
- 
  #endif    // Englisch (USA) resources
  /////////////////////////////////////////////////////////////////////////////
--- 59,62 ----
***************
*** 86,95 ****
  //
  
! 1 TEXTINCLUDE DISCARDABLE 
  BEGIN
      "resource.h\0"
  END
  
! 2 TEXTINCLUDE DISCARDABLE 
  BEGIN
      "#include ""afxres.h""\r\n"
--- 78,87 ----
  //
  
! 1 TEXTINCLUDE 
  BEGIN
      "resource.h\0"
  END
  
! 2 TEXTINCLUDE 
  BEGIN
      "#include ""afxres.h""\r\n"
***************
*** 97,101 ****
  END
  
! 3 TEXTINCLUDE DISCARDABLE 
  BEGIN
      "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
--- 89,93 ----
  END
  
! 3 TEXTINCLUDE 
  BEGIN
      "#define _AFX_NO_SPLITTER_RESOURCES\r\n"

--- EditorThread.cpp DELETED ---

--- EditorThread.h DELETED ---

--- PopupWindow.cpp DELETED ---

--- PopupWindow.h DELETED ---

--- Resource.h DELETED ---

--- StdAfx.cpp DELETED ---

--- StdAfx.h DELETED ---

--- vst.h DELETED ---





More information about the Pd-cvs mailing list