Skip to content

Commit

Permalink
Fix vst4cs for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
gogins committed Dec 14, 2017
1 parent cf24d21 commit 102315e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Opcodes/vst4cs/src/vst4cs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// exception also makes it possible to release a modified version which
// carries forward this exception.

#define CSOUND_LIFECYCLE_DEBUG
// Linux only: #define CSOUND_LIFECYCLE_DEBUG

#ifdef _WIN32
#pragma warning(disable:4786) //gab
Expand Down Expand Up @@ -88,7 +88,7 @@ extern "C" {
VSTINIT *p = (VSTINIT *) data;
VSTPlugin *plugin = new VSTPlugin(csound);
vstPlugins_t *vstPlugins = 0;
csound::QueryGlobalPointer(csound, "vstPlugins", vstPlugins);
csound::QueryGlobalPointer(csound, "vstPlugins", vstPlugins);
*p->iVSThandle = (MYFLT) vstPlugins->size();
vstPlugins->push_back(plugin);
if ((int) vstPlugins->size() == 1) {
Expand Down Expand Up @@ -642,7 +642,7 @@ extern "C" {
#if defined(CSOUND_LIFECYCLE_DEBUG)
csound->Message(csound, "csoundModuleCreate: csound: %p thread: %d\n", csound, syscall(SYS_gettid));
#endif

int result = 0;
vstPlugins_t *vstPlugins = new vstPlugins_t;
result = csound::CreateGlobalPointer (csound, "vstPlugins", vstPlugins);
Expand Down

0 comments on commit 102315e

Please sign in to comment.