fixed vst define

This commit is contained in:
itsmattkc
2019-01-21 13:27:20 +11:00
parent d726052fe7
commit 096aa0dc14
5 changed files with 12 additions and 7 deletions
+4
View File
@@ -1,5 +1,7 @@
#include "vsthost.h"
#ifdef _WIN32
// adapted from http://teragonaudio.com/article/How-to-make-your-own-VST-host.html
#include <QPushButton>
@@ -264,3 +266,5 @@ void VSTHost::change_plugin() {
}
show_interface_btn->setEnabled(plugin != nullptr);
}
#endif
+4
View File
@@ -1,6 +1,8 @@
#ifndef VSTHOSTWIN_H
#define VSTHOSTWIN_H
#ifdef _WIN32
#include "project/effect.h"
#include "io/crossplatformlib.h"
@@ -47,4 +49,6 @@ private:
ModulePtr modulePtr;
};
#endif
#endif // VSTHOSTWIN_H
-3
View File
@@ -239,9 +239,6 @@ FORMS +=
win32 {
RC_FILE = packaging/windows/resources.rc
LIBS += -lavutil -lavformat -lavcodec -lavfilter -lswscale -lswresample -lopengl32 -luser32
SOURCES +=
HEADERS +=
}
mac {
+2 -2
View File
@@ -693,10 +693,10 @@ void Effect::startEffect() {
void Effect::endEffect() {
if (bound) glslProgram->release();
bound = false;
bound = false;
}
void Effect::process_image(double, uint8_t *input, uint8_t *output, int) {}
void Effect::process_image(double, uint8_t *, uint8_t *, int){}
Effect* Effect::copy(Clip* c) {
Effect* copy = create_effect(c, meta);
+2 -2
View File
@@ -1,4 +1,4 @@
#ifndef EFFECT_H
#ifndef EFFECT_H
#define EFFECT_H
#include <QObject>
@@ -159,7 +159,7 @@ public:
const char* ffmpeg_filter;
virtual void process_image(double timecode, uint8_t* input, uint8_t* output, int size);
virtual void process_image(double timecode, uint8_t* input, uint8_t* output, int size);
virtual void process_shader(double timecode, GLTextureCoords&);
virtual void process_coords(double timecode, GLTextureCoords& coords, int data);
virtual GLuint process_superimpose(double timecode);