Skip to content

Commit

Permalink
* eliminate need for AEffEditor.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cannam committed Aug 20, 2004
1 parent dc6c186 commit 5f3adb6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
1 change: 0 additions & 1 deletion dssi-vst-scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <windows.h>

#include "aeffectx.h"
#include "AEffEditor.hpp"

#include "remotepluginserver.h"
#include "paths.h"
Expand Down
10 changes: 8 additions & 2 deletions dssi-vst-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <windows.h>

#include "aeffectx.h"
#include "AEffEditor.hpp"

#include "remotepluginserver.h"

Expand All @@ -28,6 +27,13 @@
#define APPLICATION_CLASS_NAME "dssi_vst"
#define PLUGIN_ENTRY_POINT "main"

struct Rect {
short top;
short left;
short bottom;
short right;
};

static bool inProcessThread = false;
static bool exiting = false;
static HWND hWnd = 0;
Expand Down Expand Up @@ -690,7 +696,7 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow)
}

plugin->dispatcher(plugin, effEditOpen, 0, 0, hWnd, 0);
ERect *rect = 0;
Rect *rect = 0;
plugin->dispatcher(plugin, effEditGetRect, 0, 0, &rect, 0);
if (!rect) {
cerr << "dssi-vst-server: ERROR: Plugin failed to report window size\n" << endl;
Expand Down
10 changes: 8 additions & 2 deletions dssi-vst_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@
#include <windows.h>

#include "aeffectx.h"
#include "AEffEditor.hpp"

#include "paths.h"

#define APPLICATION_CLASS_NAME "dssi_vst"
#define PLUGIN_ENTRY_POINT "main"

struct Rect {
short top;
short left;
short bottom;
short right;
};

static bool exiting = false;
static HWND hWnd = 0;
static double currentSamplePosition = 0.0;
Expand Down Expand Up @@ -528,7 +534,7 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow)
}

plugin->dispatcher(plugin, effEditOpen, 0, 0, hWnd, 0);
ERect *rect = 0;
Rect *rect = 0;
plugin->dispatcher(plugin, effEditGetRect, 0, 0, &rect, 0);
if (!rect) {
cerr << "dssi-vst_gui: ERROR: Plugin failed to report window size\n" << endl;
Expand Down

0 comments on commit 5f3adb6

Please sign in to comment.