diff options
Diffstat (limited to 'externals/grill/vst')
-rw-r--r-- | externals/grill/vst/src/EditorThread.cpp | 61 | ||||
-rw-r--r-- | externals/grill/vst/src/EditorThread.h | 60 | ||||
-rw-r--r-- | externals/grill/vst/src/PopupWindow.cpp | 127 | ||||
-rw-r--r-- | externals/grill/vst/src/PopupWindow.h | 53 | ||||
-rw-r--r-- | externals/grill/vst/src/Resource.h | 16 | ||||
-rw-r--r-- | externals/grill/vst/src/StdAfx.cpp | 8 | ||||
-rw-r--r-- | externals/grill/vst/src/StdAfx.h | 42 | ||||
-rw-r--r-- | externals/grill/vst/src/vst.h | 46 | ||||
-rw-r--r-- | externals/grill/vst/vst.dsp | 210 |
9 files changed, 0 insertions, 623 deletions
diff --git a/externals/grill/vst/src/EditorThread.cpp b/externals/grill/vst/src/EditorThread.cpp deleted file mode 100644 index 1622d0ca..00000000 --- a/externals/grill/vst/src/EditorThread.cpp +++ /dev/null @@ -1,61 +0,0 @@ -// EditorThread.cpp : implementation file -// - -#include "stdafx.h" -#include "vst.h" -#include "EditorThread.h" - -#ifdef _DEBUG -#define new DEBUG_NEW -#undef THIS_FILE -static char THIS_FILE[] = __FILE__; -#endif - -///////////////////////////////////////////////////////////////////////////// -// CEditorThread - -IMPLEMENT_DYNCREATE(CEditorThread, CWinThread) - -CEditorThread::CEditorThread(): pop(NULL) {} - -CEditorThread::~CEditorThread() {} - - -BOOL CEditorThread::InitInstance() -{ - // SetThreadPriority(THREAD_PRIORITY_LOWEST); - - m_pMainWnd = pop = new CPopupWindow; - pop->SetPlugin( plug); // window class, size etc. is set here! - return TRUE; -} - -int CEditorThread::ExitInstance() -{ - // TODO: perform any per-thread cleanup here - return CWinThread::ExitInstance(); -} - -BEGIN_MESSAGE_MAP(CEditorThread, CWinThread) - //{{AFX_MSG_MAP(CEditorThread) - // NOTE - the ClassWizard will add and remove mapping macros here. - //}}AFX_MSG_MAP -END_MESSAGE_MAP() - -///////////////////////////////////////////////////////////////////////////// -// CEditorThread message handlers - -void CEditorThread::SetPlugin(VSTPlugin *p) -{ - plug = p; -} - -void CEditorThread::Close() -{ - if(pop) pop->SendMessage(WM_CLOSE); -} - -void CEditorThread::Show(bool show) -{ - if(pop) pop->ShowWindow(show); -}
\ No newline at end of file diff --git a/externals/grill/vst/src/EditorThread.h b/externals/grill/vst/src/EditorThread.h deleted file mode 100644 index cb9b2209..00000000 --- a/externals/grill/vst/src/EditorThread.h +++ /dev/null @@ -1,60 +0,0 @@ -#if !defined(AFX_EDITORTHREAD_H__9F3ACE98_7522_400D_9404_DFD67E3D721B__INCLUDED_) -#define AFX_EDITORTHREAD_H__9F3ACE98_7522_400D_9404_DFD67E3D721B__INCLUDED_ - -#include "PopupWindow.h" // Added by ClassView -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 -// EditorThread.h : header file -// - -class VSTPLugin; - -///////////////////////////////////////////////////////////////////////////// -// CEditorThread thread - -class CEditorThread : public CWinThread -{ - DECLARE_DYNCREATE(CEditorThread) -protected: - -// Attributes -public: - CEditorThread(); // protected constructor used by dynamic creation - -// Operations -public: - void SetPlugin( VSTPlugin *); - - void Close(); - void Show(bool show); - -// Overrides - // ClassWizard generated virtual function overrides - //{{AFX_VIRTUAL(CEditorThread) - public: - virtual BOOL InitInstance(); - virtual int ExitInstance(); - //}}AFX_VIRTUAL - -// Implementation -protected: - virtual ~CEditorThread(); - - VSTPlugin *plug; - CPopupWindow *pop; - - // Generated message map functions - //{{AFX_MSG(CEditorThread) - // NOTE - the ClassWizard will add and remove member functions here. - //}}AFX_MSG - - DECLARE_MESSAGE_MAP() -}; - -///////////////////////////////////////////////////////////////////////////// - -//{{AFX_INSERT_LOCATION}} -// Microsoft Visual C++ will insert additional declarations immediately before the previous line. - -#endif // !defined(AFX_EDITORTHREAD_H__9F3ACE98_7522_400D_9404_DFD67E3D721B__INCLUDED_) diff --git a/externals/grill/vst/src/PopupWindow.cpp b/externals/grill/vst/src/PopupWindow.cpp deleted file mode 100644 index 92fbabd2..00000000 --- a/externals/grill/vst/src/PopupWindow.cpp +++ /dev/null @@ -1,127 +0,0 @@ -// PopupWindow.cpp : implementation file -// - -#include "main.h" -#include "vst.h" -#include "PopupWindow.h" -#include "EditorThread.h" -#include "VstHost.h" - -#ifdef _DEBUG -#define new DEBUG_NEW -#undef THIS_FILE -static char THIS_FILE[] = __FILE__; -#endif - -extern CVstApp *theApp; - -///////////////////////////////////////////////////////////////////////////// -// CPopupWindow - -IMPLEMENT_DYNCREATE(CPopupWindow, CFrameWnd) - -CPopupWindow::CPopupWindow(): - plug(NULL) -{} - -CPopupWindow::~CPopupWindow() -{ - plug->OnEditorClose(); -} - - -BEGIN_MESSAGE_MAP(CPopupWindow, CFrameWnd) - //{{AFX_MSG_MAP(CPopupWindow) - ON_WM_ENTERIDLE() - ON_WM_TIMER() - ON_WM_MOVE() - ON_WM_CLOSE() - //}}AFX_MSG_MAP -END_MESSAGE_MAP() - -///////////////////////////////////////////////////////////////////////////// -// CPopupWindow message handlers - -void CPopupWindow::OnEnterIdle(UINT nWhy, CWnd* pWho) -{ - CFrameWnd::OnEnterIdle(nWhy, pWho); - - // TODO: Add your message handler code here - if(plug) plug->EditorIdle(); -} - -void CPopupWindow::SetPlugin(VSTPlugin *p) -{ - plug = p; - - char tmp[256]; - sprintf(tmp,"vst~ - %s",plug->GetName()); - - CreateEx( WS_EX_DLGMODALFRAME,AfxRegisterWndClass(CS_DBLCLKS),tmp,WS_CAPTION|WS_THICKFRAME|WS_POPUP|WS_SYSMENU,0,0,0,0,NULL,NULL,NULL); - - plug->Dispatch(effEditOpen , 0 , 0 , m_hWnd , 0.0f ); -/* - CString str = theApp->GetProfileString( "VSTPos" , plug->GetName() , "10,10"); - int idx = str.Find(","); - CString x = str.Left( idx ); - CString y = str.Right( idx ); - printf(" index is %d left is %s and right is %s" , idx , x , y); -*/ - - DoInit(); - - RECT r = plug->GetEditorRect(); - SetWindowPos(&wndTop,plug->getX(),plug->getY(),(r.right - r.left) + 10 , r.bottom - r.top + 30 , SWP_SHOWWINDOW); -// ShowWindow( SW_SHOW ); -// BringWindowToTop(); -// SetFocus(); -} - - -//DEL BOOL CPopupWindow::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) -//DEL { -//DEL // TODO: Add your specialized code here and/or call the base class -//DEL -//DEL return CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext); -//DEL } - -void CPopupWindow::DoInit() -{ -// printf("DoInit\n"); - plug->Dispatch(effEditTop,0,0, 0,0.0f); -// printf("Dispatched to the top\n"); - SetTimer(0,25,NULL); -} - -void CPopupWindow::OnTimer(UINT nIDEvent) -{ - plug->Dispatch(effEditIdle, 0, 0, NULL, 0.0f); - CFrameWnd::OnTimer(nIDEvent); -} - -void CPopupWindow::OnMove(int x, int y) -{ - CFrameWnd::OnMove(x, y); - if(plug) plug->setPos(x,y); -/* - { - char buf[100]; - sprintf( buf , "%d,%d" , x , y ); - theApp->WriteProfileString( "VSTPos" , plug->GetName() , buf ); - } -*/ -} - - -//DEL void CPopupWindow::OnFinalRelease() -//DEL { -//DEL // -//DEL CFrameWnd::OnFinalRelease(); -//DEL } - -void CPopupWindow::OnClose() -{ - // TODO: Add your message handler code here and/or call default - plug->StopEditing(); - CFrameWnd::OnClose(); -} diff --git a/externals/grill/vst/src/PopupWindow.h b/externals/grill/vst/src/PopupWindow.h deleted file mode 100644 index bacdc23b..00000000 --- a/externals/grill/vst/src/PopupWindow.h +++ /dev/null @@ -1,53 +0,0 @@ -#if !defined(AFX_POPUPWINDOW_H__7B1E2281_5085_4F60_8002_5F79B2CAFFE3__INCLUDED_) -#define AFX_POPUPWINDOW_H__7B1E2281_5085_4F60_8002_5F79B2CAFFE3__INCLUDED_ - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 -// PopupWindow.h : header file -// - -class VSTPlugin; - -///////////////////////////////////////////////////////////////////////////// -// CPopupWindow frame - -class CPopupWindow : public CFrameWnd -{ - DECLARE_DYNCREATE(CPopupWindow) -// Attributes -public: - CPopupWindow(); - virtual ~CPopupWindow(); -// Operations -public: - void DoInit(); - void SetPlugin(VSTPlugin *p); - -// Overrides - // ClassWizard generated virtual function overrides - //{{AFX_VIRTUAL(CPopupWindow) - public: - //}}AFX_VIRTUAL - -// Implementation -protected: - - VSTPlugin *plug; - - // Generated message map functions - //{{AFX_MSG(CPopupWindow) - afx_msg void OnEnterIdle(UINT nWhy, CWnd* pWho); - afx_msg void OnTimer(UINT nIDEvent); - afx_msg void OnMove(int x, int y); - afx_msg void OnClose(); - //}}AFX_MSG - DECLARE_MESSAGE_MAP() -}; - -///////////////////////////////////////////////////////////////////////////// - -//{{AFX_INSERT_LOCATION}} -// Microsoft Visual C++ will insert additional declarations immediately before the previous line. - -#endif // !defined(AFX_POPUPWINDOW_H__7B1E2281_5085_4F60_8002_5F79B2CAFFE3__INCLUDED_) diff --git a/externals/grill/vst/src/Resource.h b/externals/grill/vst/src/Resource.h deleted file mode 100644 index 422efe23..00000000 --- a/externals/grill/vst/src/Resource.h +++ /dev/null @@ -1,16 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by VST.RC -// - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS - -#define _APS_NEXT_RESOURCE_VALUE 4000 -#define _APS_NEXT_CONTROL_VALUE 4000 -#define _APS_NEXT_SYMED_VALUE 4000 -#define _APS_NEXT_COMMAND_VALUE 32771 -#endif -#endif diff --git a/externals/grill/vst/src/StdAfx.cpp b/externals/grill/vst/src/StdAfx.cpp deleted file mode 100644 index 68d41b4b..00000000 --- a/externals/grill/vst/src/StdAfx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// vst.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - - - diff --git a/externals/grill/vst/src/StdAfx.h b/externals/grill/vst/src/StdAfx.h deleted file mode 100644 index 280c5d42..00000000 --- a/externals/grill/vst/src/StdAfx.h +++ /dev/null @@ -1,42 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#if !defined(AFX_STDAFX_H__694C13F1_369D_446F_992D_3F454A0993C6__INCLUDED_) -#define AFX_STDAFX_H__694C13F1_369D_446F_992D_3F454A0993C6__INCLUDED_ - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 - -#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers - -#include <afxwin.h> // MFC core and standard components -#include <afxext.h> // MFC extensions - -#ifndef _AFX_NO_OLE_SUPPORT -#include <afxole.h> // MFC OLE classes -#include <afxodlgs.h> // MFC OLE dialog classes -#include <afxdisp.h> // MFC Automation classes -#endif // _AFX_NO_OLE_SUPPORT - - -#ifndef _AFX_NO_DB_SUPPORT -#include <afxdb.h> // MFC ODBC database classes -#endif // _AFX_NO_DB_SUPPORT - -#ifndef _AFX_NO_DAO_SUPPORT -#include <afxdao.h> // MFC DAO database classes -#endif // _AFX_NO_DAO_SUPPORT - -#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls -#ifndef _AFX_NO_AFXCMN_SUPPORT -#include <afxcmn.h> // MFC support for Windows Common Controls -#endif // _AFX_NO_AFXCMN_SUPPORT - - -//{{AFX_INSERT_LOCATION}} -// Microsoft Visual C++ will insert additional declarations immediately before the previous line. - -#endif // !defined(AFX_STDAFX_H__694C13F1_369D_446F_992D_3F454A0993C6__INCLUDED_) diff --git a/externals/grill/vst/src/vst.h b/externals/grill/vst/src/vst.h deleted file mode 100644 index 63b60b3e..00000000 --- a/externals/grill/vst/src/vst.h +++ /dev/null @@ -1,46 +0,0 @@ -// vst.h : main header file for the VST DLL -// - -#if !defined(AFX_VST_H__013CDC75_CDE8_40AD_AE29_D952471B07F5__INCLUDED_) -#define AFX_VST_H__013CDC75_CDE8_40AD_AE29_D952471B07F5__INCLUDED_ - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 - -#ifndef __AFXWIN_H__ - #error include 'stdafx.h' before including this file for PCH -#endif - -#include "resource.h" // main symbols - -///////////////////////////////////////////////////////////////////////////// -// CVstApp -// See vst.cpp for the implementation of this class -// - -class CVstApp : public CWinApp -{ -public: - CVstApp(); - -// Overrides - // ClassWizard generated virtual function overrides - //{{AFX_VIRTUAL(CVstApp) - //}}AFX_VIRTUAL - - //{{AFX_MSG(CVstApp) - // NOTE - the ClassWizard will add and remove member functions here. - // DO NOT EDIT what you see in these blocks of generated code ! - //}}AFX_MSG - DECLARE_MESSAGE_MAP() -}; - - -///////////////////////////////////////////////////////////////////////////// - -//{{AFX_INSERT_LOCATION}} -// Microsoft Visual C++ will insert additional declarations immediately before the previous line. - -#endif // !defined(AFX_VST_H__013CDC75_CDE8_40AD_AE29_D952471B07F5__INCLUDED_) - diff --git a/externals/grill/vst/vst.dsp b/externals/grill/vst/vst.dsp deleted file mode 100644 index 35d4f5b2..00000000 --- a/externals/grill/vst/vst.dsp +++ /dev/null @@ -1,210 +0,0 @@ -# Microsoft Developer Studio Project File - Name="vst" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** NICHT BEARBEITEN ** - -# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 - -CFG=vst - Win32 Debug -!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE -!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl -!MESSAGE -!MESSAGE NMAKE /f "vst.mak". -!MESSAGE -!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben -!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: -!MESSAGE -!MESSAGE NMAKE /f "vst.mak" CFG="vst - Win32 Debug" -!MESSAGE -!MESSAGE Für die Konfiguration stehen zur Auswahl: -!MESSAGE -!MESSAGE "vst - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library") -!MESSAGE "vst - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "max/vst" -# PROP Scc_LocalPath "." -CPP=cl.exe -MTL=midl.exe -RSC=rc.exe - -!IF "$(CFG)" == "vst - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 1 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "pd-msvc/r" -# PROP Intermediate_Dir "pd-msvc/r" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /YX /FD /c -# ADD CPP /nologo /MT /W3 /GX /O2 /I "c:\programme\audio\pd\src" /I "f:\prog\max\flext\source" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D FLEXT_SYS=2 /D "FLEXT_THREADS" /D "_WINDLL" /YX /FD /c -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0xc07 /d "NDEBUG" -# ADD RSC /l 0xc07 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 -# ADD LINK32 pd.lib flext_t-pdwin.lib pthreadVC.lib /nologo /dll /machine:I386 /out:"pd-msvc/vst~.dll" /libpath:"c:\programme\audio\pd\bin" /libpath:"f:\prog\max\flext\pd-msvc" - -!ELSEIF "$(CFG)" == "vst - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 2 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "pd-msvc/d" -# PROP Intermediate_Dir "pd-msvc/d" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /YX /FD /GZ /c -# ADD CPP /nologo /MDd /W3 /Gm /ZI /Od /I "c:\programme\audio\pd\src" /I "f:\prog\max\flext\source" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D FLEXT_SYS=2 /D "FLEXT_THREADS" /D "_WINDLL" /D "_AFXDLL" /D "FLEXT_LOGGING" /FR /YX /FD /GZ /c -# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0xc07 /d "_DEBUG" -# ADD RSC /l 0xc07 /d "_DEBUG" /d "_AFXDLL" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept -# ADD LINK32 pd.lib flext_tdl-pdwin.lib pthreadVC.lib /nologo /dll /debug /machine:I386 /out:"pd-msvc/d/vst~.dll" /pdbtype:sept /libpath:"c:\programme\audio\pd\bin" /libpath:"f:\prog\max\flext\pd-msvc" - -!ENDIF - -# Begin Target - -# Name "vst - Win32 Release" -# Name "vst - Win32 Debug" -# Begin Group "vst" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\src\vst\AEffect.h -# End Source File -# Begin Source File - -SOURCE=.\src\vst\AEffectx.h -# End Source File -# Begin Source File - -SOURCE=.\src\vst\AEffEditor.h -# End Source File -# Begin Source File - -SOURCE=.\src\vst\AudioEffect.hpp -# End Source File -# Begin Source File - -SOURCE=.\src\vst\audioeffectx.h -# End Source File -# End Group -# Begin Group "alt" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\src\vst.cpp -# PROP Exclude_From_Build 1 -# End Source File -# Begin Source File - -SOURCE=.\src\vst~.cpp -# PROP Exclude_From_Build 1 -# End Source File -# Begin Source File - -SOURCE=.\src\vst~.h -# PROP Exclude_From_Build 1 -# End Source File -# End Group -# Begin Group "mfc" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\src\Resource.h -# End Source File -# Begin Source File - -SOURCE=.\src\StdAfx.cpp -# End Source File -# Begin Source File - -SOURCE=.\src\StdAfx.h -# End Source File -# End Group -# Begin Group "host" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\src\EditorThread.cpp -# End Source File -# Begin Source File - -SOURCE=.\src\EditorThread.h -# End Source File -# Begin Source File - -SOURCE=.\src\PopupWindow.cpp -# End Source File -# Begin Source File - -SOURCE=.\src\PopupWindow.h -# End Source File -# Begin Source File - -SOURCE=.\src\vst.rc -# End Source File -# Begin Source File - -SOURCE=.\src\VstHost.cpp -# End Source File -# Begin Source File - -SOURCE=.\src\VstHost.h -# End Source File -# End Group -# Begin Group "doc" - -# PROP Default_Filter "" -# Begin Source File - -SOURCE=.\gpl.txt -# End Source File -# Begin Source File - -SOURCE=.\license.txt -# End Source File -# Begin Source File - -SOURCE=.\readme.txt -# End Source File -# End Group -# Begin Source File - -SOURCE=.\src\main.cpp -# End Source File -# Begin Source File - -SOURCE=.\src\main.h -# End Source File -# Begin Source File - -SOURCE=.\src\vst.h -# End Source File -# End Target -# End Project |