Get Ildaeil to do some useful things
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
d1916efe99
commit
072f9ee3ca
12 changed files with 1253 additions and 29 deletions
|
|
@ -98,6 +98,8 @@ public:
|
|||
fContext(getRackContextFromPlugin(getPluginInstancePointer())),
|
||||
fResizeHandle(this)
|
||||
{
|
||||
fContext->nativeWindowId = getWindow().getNativeWindowHandle();
|
||||
|
||||
if (isResizable())
|
||||
fResizeHandle.hide();
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,58 @@ PREFIX ?= /usr/local
|
|||
DESTDIR ?=
|
||||
SYSDEPS ?= false
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Carla stuff
|
||||
|
||||
CWD = ../../carla/source
|
||||
include $(CWD)/Makefile.deps.mk
|
||||
|
||||
CARLA_BUILD_DIR = ../../carla/build
|
||||
ifeq ($(DEBUG),true)
|
||||
CARLA_BUILD_TYPE = Debug
|
||||
else
|
||||
CARLA_BUILD_TYPE = Release
|
||||
endif
|
||||
|
||||
CARLA_EXTRA_LIBS = $(CARLA_BUILD_DIR)/plugin/$(CARLA_BUILD_TYPE)/carla-host-plugin.cpp.o
|
||||
# ifneq ($(MACOS),true)
|
||||
# CARLA_EXTRA_LIBS += -Wl,--start-group -Wl,--whole-archive
|
||||
# endif
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/carla_engine_plugin.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/carla_plugin.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/native-plugins.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/audio_decoder.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/jackbridge.min.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/lilv.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/rtmempool.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/sfzero.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/water.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/zita-resampler.a
|
||||
# CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/eel2.a
|
||||
# CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/jsusfx.a
|
||||
ifeq ($(USING_JUCE),true)
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/juce_audio_basics.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/juce_audio_processors.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/juce_core.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/juce_data_structures.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/juce_events.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/juce_graphics.a
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/juce_gui_basics.a
|
||||
ifeq ($(USING_JUCE_GUI_EXTRA),true)
|
||||
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/juce_gui_extra.a
|
||||
endif
|
||||
endif
|
||||
# ifneq ($(MACOS),true)
|
||||
# CARLA_EXTRA_LIBS += -Wl,--no-whole-archive -Wl,--end-group
|
||||
# endif
|
||||
|
||||
# FIXME patch fluidsynth package
|
||||
ifeq ($(WINDOWS),true)
|
||||
STATIC_CARLA_PLUGIN_LIBS += -ldsound -lwinmm
|
||||
endif
|
||||
|
||||
CARLA_EXTRA_LIBS += $(STATIC_CARLA_PLUGIN_LIBS)
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Import base definitions
|
||||
|
||||
|
|
@ -37,22 +89,25 @@ endif
|
|||
# --------------------------------------------------------------
|
||||
# Extra libraries to link against
|
||||
|
||||
EXTRA_LIBS = ../../plugins/plugins.a
|
||||
EXTRA_LIBS += ../rack.a
|
||||
RACK_EXTRA_LIBS = ../../plugins/plugins.a
|
||||
RACK_EXTRA_LIBS += ../rack.a
|
||||
|
||||
ifneq ($(SYSDEPS),true)
|
||||
EXTRA_LIBS += ../Rack/dep/lib/libjansson.a
|
||||
EXTRA_LIBS += ../Rack/dep/lib/libsamplerate.a
|
||||
EXTRA_LIBS += ../Rack/dep/lib/libspeexdsp.a
|
||||
RACK_EXTRA_LIBS += ../Rack/dep/lib/libjansson.a
|
||||
RACK_EXTRA_LIBS += ../Rack/dep/lib/libsamplerate.a
|
||||
RACK_EXTRA_LIBS += ../Rack/dep/lib/libspeexdsp.a
|
||||
ifeq ($(WINDOWS),true)
|
||||
EXTRA_LIBS += ../Rack/dep/lib/libarchive_static.a
|
||||
RACK_EXTRA_LIBS += ../Rack/dep/lib/libarchive_static.a
|
||||
else
|
||||
EXTRA_LIBS += ../Rack/dep/lib/libarchive.a
|
||||
RACK_EXTRA_LIBS += ../Rack/dep/lib/libarchive.a
|
||||
endif
|
||||
EXTRA_LIBS += ../Rack/dep/lib/libzstd.a
|
||||
RACK_EXTRA_LIBS += ../Rack/dep/lib/libzstd.a
|
||||
endif
|
||||
|
||||
EXTRA_DEPENDENCIES = $(EXTRA_LIBS)
|
||||
# --------------------------------------------------------------
|
||||
|
||||
EXTRA_DEPENDENCIES = $(RACK_EXTRA_LIBS)
|
||||
EXTRA_LIBS = $(CARLA_EXTRA_LIBS) $(RACK_EXTRA_LIBS)
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Do some magic
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ struct CardinalPluginContext : rack::Context {
|
|||
bool playing, reset;
|
||||
int32_t bar, beat, beatsPerBar;
|
||||
double tick, tickClock, ticksPerBeat, ticksPerClock, ticksPerFrame;
|
||||
uintptr_t nativeWindowId;
|
||||
Plugin* const plugin;
|
||||
|
||||
CardinalPluginContext(Plugin* const p)
|
||||
|
|
@ -58,6 +59,7 @@ struct CardinalPluginContext : rack::Context {
|
|||
ticksPerBeat(0.0),
|
||||
ticksPerClock(0.0),
|
||||
ticksPerFrame(0.0),
|
||||
nativeWindowId(0),
|
||||
plugin(p)
|
||||
{
|
||||
std::memset(parameters, 0, sizeof(parameters));
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@
|
|||
"version": "2.0",
|
||||
"params": [],
|
||||
"leftModuleId": 3,
|
||||
"rightModuleId": 5,
|
||||
"pos": [
|
||||
21,
|
||||
0
|
||||
|
|
@ -94,10 +95,23 @@
|
|||
"version": "2.0",
|
||||
"params": [],
|
||||
"leftModuleId": 4,
|
||||
"rightModuleId": 6,
|
||||
"pos": [
|
||||
30,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"plugin": "Cardinal",
|
||||
"model": "Ildaeil",
|
||||
"version": "2.0",
|
||||
"params": [],
|
||||
"leftModuleId": 4,
|
||||
"pos": [
|
||||
38,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"cables": [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue