Rework to allow multi-context audio, custom driver, custom context

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-18 02:25:35 +01:00
parent 963c669d55
commit e0e50db2bc
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 240 additions and 135 deletions

View file

@ -21,9 +21,8 @@
#include <ui/common.hpp>
#include <window/Window.hpp>
#ifdef NDEBUG
# undef DEBUG
#endif
#include "PluginContext.hpp"
#include "DistrhoUI.hpp"
#include "ResizeHandle.hpp"
@ -42,11 +41,11 @@ START_NAMESPACE_DISTRHO
// -----------------------------------------------------------------------------------------------------------
rack::Context* getRackContextFromPlugin(void* ptr);
CardinalPluginContext* getRackContextFromPlugin(void* ptr);
class CardinalUI : public UI
{
rack::Context* const fContext;
CardinalPluginContext* const fContext;
rack::math::Vec fLastMousePos;
ResizeHandle fResizeHandle;