Browse Source

Make sure to init JSFX APIs, avoiding compilation errors

pull/1507/head
Jean Pierre Cimalando Filipe Coelho <falktx@falktx.com> 3 years ago
parent
commit
0dd92dfa19
3 changed files with 12 additions and 0 deletions
  1. +1
    -0
      source/backend/plugin/CarlaPluginJSFX.cpp
  2. +10
    -0
      source/discovery/carla-discovery.cpp
  3. +1
    -0
      source/utils/CarlaJsfxUtils.hpp

+ 1
- 0
source/backend/plugin/CarlaPluginJSFX.cpp View File

@@ -840,6 +840,7 @@ public:
fFileAPI = new CarlaJsusFxFileAPI;
fEffect = new CarlaJsusFx(*fPathLibrary);
fEffect->fileAPI = fFileAPI;
fFileAPI->init(fEffect->m_vm);
fFilename.assign(filename);

// ---------------------------------------------------------------


+ 10
- 0
source/discovery/carla-discovery.cpp View File

@@ -1673,6 +1673,16 @@ static void do_jsfx_check(const char* const filename, bool doInit)

uint hints = 0;

///
JsusFxFileAPI_Basic fileAPI;
effect.fileAPI = &fileAPI;
fileAPI.init(effect.m_vm);

JsusFxGfx gfxAPI;
effect.gfx = &gfxAPI;
gfxAPI.init(effect.m_vm);

///
if (doInit)
{
int compileFlags =


+ 1
- 0
source/utils/CarlaJsfxUtils.hpp View File

@@ -30,6 +30,7 @@
#pragma GCC diagnostic ignored "-Wignored-attributes"
#include "jsusfx.h"
#include "jsusfx_file.h"
#include "jsusfx_gfx.h"
#include "jsusfx_serialize.h"
#pragma GCC diagnostic pop



Loading…
Cancel
Save