Skip to content

Commit

Permalink
More build fixes
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Apr 15, 2024
1 parent 73e75ce commit a6a83f3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
6 changes: 4 additions & 2 deletions include/plugincontext.hpp
Expand Up @@ -89,14 +89,16 @@ struct CardinalPluginContext : rack::Context {
const CardinalDISTRHO::MidiEvent* midiEvents;
uint32_t midiEventCount;
CardinalDISTRHO::Plugin* const plugin;
#ifndef HEADLESS
CardinalDGL::NanoTopLevelWidget* tlw;
CardinalDISTRHO::UI* ui;
#endif
CardinalPluginContext(CardinalDISTRHO::Plugin* const p);
void writeMidiMessage(const rack::midi::Message& message, uint8_t channel);
#ifndef HEADLESS
#ifndef HEADLESS
bool addIdleCallback(IdleCallback* cb) const;
void removeIdleCallback(IdleCallback* cb) const;
#endif
#endif
};

#ifndef HEADLESS
Expand Down
2 changes: 1 addition & 1 deletion plugins/Makefile
Expand Up @@ -579,7 +579,7 @@ PLUGIN_FILES += $(filter-out Biset/src/plugin.cpp,$(wildcard Biset/src/*.cpp))
PLUGIN_FILES += $(wildcard Biset/src/*/*.cpp)

# modules/types which are present in other plugins
BISET_CUSTOM = Blank ButtonTrigger Clock Tree
BISET_CUSTOM = Blank ButtonTrigger Clock Tree TreeDisplay

# --------------------------------------------------------------
# BogaudioModules
Expand Down
28 changes: 23 additions & 5 deletions plugins/plugins.cpp
Expand Up @@ -147,15 +147,33 @@ extern Model* modelChord;
#include "Bidoo/src/plugin.hpp"

// Biset
/* NOTE too much noise in original include, do this a different way
// #include "Biset/src/plugin.hpp"
*/
#define modelBlank modelBisetBlank
#define modelTree modelBisetTree
#define Clock BisetClock
#define ButtonTrigger BisetButtonTrigger
#include "Biset/src/plugin.hpp"
extern Model* modelTracker;
extern Model* modelTrackerSynth;
extern Model* modelTrackerDrum;
extern Model* modelTrackerClock;
extern Model* modelTrackerPhase;
extern Model* modelTrackerQuant;
extern Model* modelTrackerState;
extern Model* modelTrackerControl;
extern Model* modelRegex;
extern Model* modelRegexCondensed;
extern Model* modelRegexExp;
extern Model* modelTree;
extern Model* modelTreeSeed;
extern Model* modelGbu;
extern Model* modelPkm;
extern Model* modelIgc;
extern Model* modelOmega3;
extern Model* modelOmega6;
extern Model* modelSegfault;
extern Model* modelBlank;
#undef modelBlank
#undef modelTree
#undef ButtonTrigger
#undef Clock

// BogaudioModules - integrate theme/skin support
#include <mutex>
Expand Down
2 changes: 1 addition & 1 deletion src/CardinalUI.cpp
Expand Up @@ -1081,7 +1081,7 @@ class CardinalUI : public CardinalBaseUI,
int key;
switch (ev.key)
{
case '\t': key = GLFW_KEY_TAB; break;
case kKeyTab: key = GLFW_KEY_TAB; break;
case kKeyBackspace: key = GLFW_KEY_BACKSPACE; break;
case kKeyEnter: key = GLFW_KEY_ENTER; break;
case kKeyEscape: key = GLFW_KEY_ESCAPE; break;
Expand Down

0 comments on commit a6a83f3

Please sign in to comment.