lv2/vst3: fix warnings and add needed header
This commit is contained in:
parent
39d3bf9e41
commit
b8cacab8b8
@ -37,21 +37,23 @@ typedef struct {
|
|||||||
|
|
||||||
#include "lv2/core/lv2.h"
|
#include "lv2/core/lv2.h"
|
||||||
#if DATA_PRODUCT_MIDI_INPUTS_N + DATA_PRODUCT_MIDI_OUTPUTS_N > 0
|
#if DATA_PRODUCT_MIDI_INPUTS_N + DATA_PRODUCT_MIDI_OUTPUTS_N > 0
|
||||||
#include "lv2/core/lv2_util.h"
|
# include "lv2/core/lv2_util.h"
|
||||||
#include "lv2/atom/util.h"
|
# include "lv2/atom/util.h"
|
||||||
#include "lv2/atom/atom.h"
|
# include "lv2/atom/atom.h"
|
||||||
#include "lv2/log/log.h"
|
# include "lv2/log/log.h"
|
||||||
#include "lv2/log/logger.h"
|
# include "lv2/log/logger.h"
|
||||||
#include "lv2/midi/midi.h"
|
# include "lv2/midi/midi.h"
|
||||||
#include "lv2/urid/urid.h"
|
# include "lv2/urid/urid.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef DATA_UI
|
#ifdef DATA_UI
|
||||||
#include "lv2/ui/ui.h"
|
# include "lv2/ui/ui.h"
|
||||||
|
|
||||||
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__i386__) || defined(__x86_64__)
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
#include <xmmintrin.h>
|
# include <xmmintrin.h>
|
||||||
#include <pmmintrin.h>
|
# include <pmmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline float clampf(float x, float m, float M) {
|
static inline float clampf(float x, float m, float M) {
|
||||||
|
@ -97,7 +97,8 @@ typedef struct Steinberg_IEventHandler
|
|||||||
struct Steinberg_IEventHandlerVtbl* lpVtbl;
|
struct Steinberg_IEventHandlerVtbl* lpVtbl;
|
||||||
} Steinberg_IEventHandler;
|
} Steinberg_IEventHandler;
|
||||||
|
|
||||||
static const Steinberg_TUID Steinberg_IEventHandler_iid = SMTG_INLINE_UID (0x561E65C9, 0x13A0496F, 0x813A2C35, 0x654D7983);
|
// not used
|
||||||
|
//static const Steinberg_TUID Steinberg_IEventHandler_iid = SMTG_INLINE_UID (0x561E65C9, 0x13A0496F, 0x813A2C35, 0x654D7983);
|
||||||
|
|
||||||
typedef struct Steinberg_IRunLoopVtbl
|
typedef struct Steinberg_IRunLoopVtbl
|
||||||
{
|
{
|
||||||
@ -1090,18 +1091,31 @@ static Steinberg_tresult plugViewRemoved(void* thisInterface) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Steinberg_tresult plugViewOnWheel(void* thisInterface, float distance) {
|
static Steinberg_tresult plugViewOnWheel(void* thisInterface, float distance) {
|
||||||
|
(void)thisInterface;
|
||||||
|
(void)distance;
|
||||||
|
|
||||||
TRACE("plugView onWheel %p\n", thisInterface);
|
TRACE("plugView onWheel %p\n", thisInterface);
|
||||||
//TODO
|
//TODO
|
||||||
return Steinberg_kResultFalse;
|
return Steinberg_kResultFalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Steinberg_tresult plugViewOnKeyDown(void* thisInterface, Steinberg_char16 key, Steinberg_int16 keyCode, Steinberg_int16 modifiers) {
|
static Steinberg_tresult plugViewOnKeyDown(void* thisInterface, Steinberg_char16 key, Steinberg_int16 keyCode, Steinberg_int16 modifiers) {
|
||||||
|
(void)thisInterface;
|
||||||
|
(void)key;
|
||||||
|
(void)keyCode;
|
||||||
|
(void)modifiers;
|
||||||
|
|
||||||
TRACE("plugView onKeyDown %p\n", thisInterface);
|
TRACE("plugView onKeyDown %p\n", thisInterface);
|
||||||
//TODO
|
//TODO
|
||||||
return Steinberg_kResultFalse;
|
return Steinberg_kResultFalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Steinberg_tresult plugViewOnKeyUp(void* thisInterface, Steinberg_char16 key, Steinberg_int16 keyCode, Steinberg_int16 modifiers) {
|
static Steinberg_tresult plugViewOnKeyUp(void* thisInterface, Steinberg_char16 key, Steinberg_int16 keyCode, Steinberg_int16 modifiers) {
|
||||||
|
(void)thisInterface;
|
||||||
|
(void)key;
|
||||||
|
(void)keyCode;
|
||||||
|
(void)modifiers;
|
||||||
|
|
||||||
TRACE("plugView onKeyUp %p\n", thisInterface);
|
TRACE("plugView onKeyUp %p\n", thisInterface);
|
||||||
//TODO
|
//TODO
|
||||||
return Steinberg_kResultFalse;
|
return Steinberg_kResultFalse;
|
||||||
@ -1145,6 +1159,9 @@ static Steinberg_tresult plugViewOnSize(void* thisInterface, struct Steinberg_Vi
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Steinberg_tresult plugViewOnFocus(void* thisInterface, Steinberg_TBool state) {
|
static Steinberg_tresult plugViewOnFocus(void* thisInterface, Steinberg_TBool state) {
|
||||||
|
(void)thisInterface;
|
||||||
|
(void)state;
|
||||||
|
|
||||||
TRACE("plugView onFocus %p\n", thisInterface);
|
TRACE("plugView onFocus %p\n", thisInterface);
|
||||||
//TODO
|
//TODO
|
||||||
return Steinberg_kResultFalse;
|
return Steinberg_kResultFalse;
|
||||||
@ -1176,6 +1193,9 @@ static Steinberg_tresult plugViewCanResize(void* thisInterface) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Steinberg_tresult plugViewCheckSizeConstraint(void* thisInterface, struct Steinberg_ViewRect* rect) {
|
static Steinberg_tresult plugViewCheckSizeConstraint(void* thisInterface, struct Steinberg_ViewRect* rect) {
|
||||||
|
(void)thisInterface;
|
||||||
|
(void)rect;
|
||||||
|
|
||||||
TRACE("plugView chekSizeContraint %p\n", thisInterface);
|
TRACE("plugView chekSizeContraint %p\n", thisInterface);
|
||||||
//TODO
|
//TODO
|
||||||
return Steinberg_kResultFalse;
|
return Steinberg_kResultFalse;
|
||||||
|
Loading…
Reference in New Issue
Block a user