| @@ -29,7 +29,7 @@ export LDFLAGS="-m64" | |||||
| export PATH=$TARGETDIR/carla/bin:$TARGETDIR/carla64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin | export PATH=$TARGETDIR/carla/bin:$TARGETDIR/carla64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin | ||||
| export PKG_CONFIG_PATH=$TARGETDIR/carla/lib/pkgconfig:$TARGETDIR/carla64/lib/pkgconfig | export PKG_CONFIG_PATH=$TARGETDIR/carla/lib/pkgconfig:$TARGETDIR/carla64/lib/pkgconfig | ||||
| make $JOBS | |||||
| make HAVE_DGL=false $JOBS | |||||
| ############################################################################################## | ############################################################################################## | ||||
| # Build 32bit bridges | # Build 32bit bridges | ||||
| @@ -41,12 +41,12 @@ export LDFLAGS="-m32" | |||||
| export PATH=$TARGETDIR/carla32/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin | export PATH=$TARGETDIR/carla32/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin | ||||
| export PKG_CONFIG_PATH=$TARGETDIR/carla32/lib/pkgconfig | export PKG_CONFIG_PATH=$TARGETDIR/carla32/lib/pkgconfig | ||||
| make posix32 $JOBS | |||||
| make HAVE_DGL=false posix32 $JOBS | |||||
| ############################################################################################## | ############################################################################################## | ||||
| # Build Mac App | # Build Mac App | ||||
| export PATH=/opt/carla/bin:/opt/carla64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin | |||||
| export PATH=$TARGETDIR/carla/bin:$TARGETDIR/carla64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin | |||||
| export PYTHONPATH=`pwd`/source | export PYTHONPATH=`pwd`/source | ||||
| unset CFLAGS | unset CFLAGS | ||||
| unset CXXFLAGS | unset CXXFLAGS | ||||
| @@ -14,8 +14,9 @@ from carla_host import VERSION | |||||
| # ------------------------------------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------------------------------------ | ||||
| options = { | |||||
| options = { | |||||
| "packages": ["re", "sip", "subprocess", "inspect"], | "packages": ["re", "sip", "subprocess", "inspect"], | ||||
| "excludes": ["PyQt5.QtNetwork", "PyQt5.QtSql", "PyQt5.QtTest", "PyQt5.QtXml", "XCTest"], | |||||
| "create_shared_zip": False, | "create_shared_zip": False, | ||||
| "append_script_to_exe": True, | "append_script_to_exe": True, | ||||
| "optimize": True, | "optimize": True, | ||||
| @@ -537,7 +537,7 @@ public: | |||||
| return kEngineTypeBridge; | return kEngineTypeBridge; | ||||
| } | } | ||||
| const char* getCurrentDriverName() const noexcept | |||||
| const char* getCurrentDriverName() const noexcept override | |||||
| { | { | ||||
| return "Bridge"; | return "Bridge"; | ||||
| } | } | ||||
| @@ -22,7 +22,7 @@ | |||||
| #include "RtLinkedList.hpp" | #include "RtLinkedList.hpp" | ||||
| #include "juce_audio_devices.h" | |||||
| #include "juce_audio_devices/juce_audio_devices.h" | |||||
| using namespace juce; | using namespace juce; | ||||
| @@ -46,7 +46,6 @@ public: | |||||
| fMidiBuffer(), | fMidiBuffer(), | ||||
| fPosInfo(), | fPosInfo(), | ||||
| fChunk(), | fChunk(), | ||||
| fUniqueId(nullptr), | |||||
| fWindow() | fWindow() | ||||
| { | { | ||||
| carla_debug("CarlaPluginJuce::CarlaPluginJuce(%p, %i)", engine, id); | carla_debug("CarlaPluginJuce::CarlaPluginJuce(%p, %i)", engine, id); | ||||
| @@ -1248,8 +1247,6 @@ private: | |||||
| CurrentPositionInfo fPosInfo; | CurrentPositionInfo fPosInfo; | ||||
| MemoryBlock fChunk; | MemoryBlock fChunk; | ||||
| const char* fUniqueId; | |||||
| ScopedPointer<JucePluginWindow> fWindow; | ScopedPointer<JucePluginWindow> fWindow; | ||||
| CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaPluginJuce) | CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaPluginJuce) | ||||
| @@ -520,7 +520,7 @@ public: | |||||
| fParamBuffers(nullptr), | fParamBuffers(nullptr), | ||||
| fCanInit2(true), | fCanInit2(true), | ||||
| fNeedsUiClose(false), | fNeedsUiClose(false), | ||||
| fLatencyChanged(false), | |||||
| //fLatencyChanged(false), | |||||
| fLatencyIndex(-1), | fLatencyIndex(-1), | ||||
| fAtomBufferIn(), | fAtomBufferIn(), | ||||
| fAtomBufferOut(), | fAtomBufferOut(), | ||||
| @@ -5550,7 +5550,7 @@ private: | |||||
| bool fCanInit2; // some plugins don't like 2 instances | bool fCanInit2; // some plugins don't like 2 instances | ||||
| bool fNeedsUiClose; | bool fNeedsUiClose; | ||||
| bool fLatencyChanged; | |||||
| //bool fLatencyChanged; | |||||
| int32_t fLatencyIndex; // -1 if invalid | int32_t fLatencyIndex; // -1 if invalid | ||||
| Lv2AtomRingBuffer fAtomBufferIn; | Lv2AtomRingBuffer fAtomBufferIn; | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include "CarlaPluginUI.hpp" | #include "CarlaPluginUI.hpp" | ||||
| #if defined(CARLA_OS_WIN) || defined(CARLA_OS_MAC) | #if defined(CARLA_OS_WIN) || defined(CARLA_OS_MAC) | ||||
| # include "juce_events.h" | |||||
| # include "juce_events/juce_events.h" | |||||
| using juce::MessageManager; | using juce::MessageManager; | ||||
| using juce::ScopedJuceInitialiser_GUI; | using juce::ScopedJuceInitialiser_GUI; | ||||
| #endif | #endif | ||||
| @@ -2082,6 +2082,12 @@ class CarlaHostNull(CarlaHostMeta): | |||||
| def get_host_osc_url_udp(self): | def get_host_osc_url_udp(self): | ||||
| return "" | return "" | ||||
| def nsm_init(self, pid, executableName): | |||||
| return False | |||||
| def nsm_ready(self, action): | |||||
| return | |||||
| # ------------------------------------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------------------------------------ | ||||
| # Carla Host object using a DLL | # Carla Host object using a DLL | ||||
| @@ -33,7 +33,7 @@ | |||||
| # include <stdint.h> | # include <stdint.h> | ||||
| #endif | #endif | ||||
| #if defined(DISTRHO_OS_MAC) && ! defined(CARLA_OS_MAC) | |||||
| #if defined(DISTRHO_OS_MAC) && ! defined(CARLA_OS_MAC) && ! defined(DISTRHO_PROPER_CPP11_SUPPORT) | |||||
| namespace std { | namespace std { | ||||
| inline float fmin(float __x, float __y) | inline float fmin(float __x, float __y) | ||||
| { return __builtin_fminf(__x, __y); } | { return __builtin_fminf(__x, __y); } | ||||
| @@ -42,7 +42,6 @@ class UICarla | |||||
| public: | public: | ||||
| UICarla(const NativeHostDescriptor* const host, PluginExporter* const plugin) | UICarla(const NativeHostDescriptor* const host, PluginExporter* const plugin) | ||||
| : fHost(host), | : fHost(host), | ||||
| fPlugin(plugin), | |||||
| fUI(this, 0, editParameterCallback, setParameterCallback, setStateCallback, sendNoteCallback, setSizeCallback, plugin->getInstancePointer()) | fUI(this, 0, editParameterCallback, setParameterCallback, setStateCallback, sendNoteCallback, setSizeCallback, plugin->getInstancePointer()) | ||||
| { | { | ||||
| fUI.setWindowTitle(host->uiName); | fUI.setWindowTitle(host->uiName); | ||||
| @@ -125,7 +124,6 @@ protected: | |||||
| private: | private: | ||||
| // Plugin stuff | // Plugin stuff | ||||
| const NativeHostDescriptor* const fHost; | const NativeHostDescriptor* const fHost; | ||||
| PluginExporter* const fPlugin; | |||||
| // UI | // UI | ||||
| UIExporter fUI; | UIExporter fUI; | ||||
| @@ -98,7 +98,7 @@ protected: | |||||
| return currentTime() > _delay; | return currentTime() > _delay; | ||||
| } | } | ||||
| virtual void updateCurrentTime(int /*time*/) | |||||
| virtual void updateCurrentTime(int /*time*/) override | |||||
| { | { | ||||
| if (QObject* tgt = target()) | if (QObject* tgt = target()) | ||||
| { | { | ||||
| @@ -201,9 +201,9 @@ void carla_zeroFloats(float floats[], const std::size_t count) noexcept | |||||
| } | } | ||||
| // -------------------------------------------------------------------------------------------------------------------- | // -------------------------------------------------------------------------------------------------------------------- | ||||
| // Missing functions in OSX. | |||||
| // Missing functions in old OSX versions. | |||||
| #if 0 // defined(CARLA_OS_MAC) && ! defined(DISTRHO_OS_MAC) | |||||
| #if defined(CARLA_OS_MAC) && ! defined(DISTRHO_OS_MAC) && ! defined(CARLA_PROPER_CPP11_SUPPORT) | |||||
| namespace std { | namespace std { | ||||
| inline float fmin(float __x, float __y) | inline float fmin(float __x, float __y) | ||||
| { return __builtin_fminf(__x, __y); } | { return __builtin_fminf(__x, __y); } | ||||
| @@ -47,6 +47,7 @@ struct NSView; | |||||
| # endif | # endif | ||||
| namespace juce { | namespace juce { | ||||
| //============================================================================== | //============================================================================== | ||||
| struct AutoResizingNSViewComponent : public NSViewComponent, | struct AutoResizingNSViewComponent : public NSViewComponent, | ||||
| private AsyncUpdater { | private AsyncUpdater { | ||||
| @@ -65,12 +66,10 @@ struct AutoResizingNSViewComponentWithParent : public AutoResizingNSViewComponen | |||||
| //============================================================================== | //============================================================================== | ||||
| # ifdef CARLA_PLUGIN_UI_WITHOUT_JUCE_PROCESSORS | # ifdef CARLA_PLUGIN_UI_WITHOUT_JUCE_PROCESSORS | ||||
| # include "juce_core/native/juce_BasicNativeHeaders.h" | |||||
| AutoResizingNSViewComponent::AutoResizingNSViewComponent() | AutoResizingNSViewComponent::AutoResizingNSViewComponent() | ||||
| : recursive (false) {} | : recursive (false) {} | ||||
| void AutoResizingNSViewComponent::childBoundsChanged(Component*) override | |||||
| void AutoResizingNSViewComponent::childBoundsChanged(Component*) /* override */ | |||||
| { | { | ||||
| if (recursive) | if (recursive) | ||||
| { | { | ||||
| @@ -84,7 +83,7 @@ void AutoResizingNSViewComponent::childBoundsChanged(Component*) override | |||||
| } | } | ||||
| } | } | ||||
| void AutoResizingNSViewComponent::handleAsyncUpdate() override | |||||
| void AutoResizingNSViewComponent::handleAsyncUpdate() /* override */ | |||||
| { | { | ||||
| resizeToFitView(); | resizeToFitView(); | ||||
| } | } | ||||
| @@ -107,7 +106,7 @@ NSView* AutoResizingNSViewComponentWithParent::getChildView() const | |||||
| return nil; | return nil; | ||||
| } | } | ||||
| void AutoResizingNSViewComponentWithParent::timerCallback() override | |||||
| void AutoResizingNSViewComponentWithParent::timerCallback() /* override */ | |||||
| { | { | ||||
| if (NSView* child = getChildView()) | if (NSView* child = getChildView()) | ||||
| { | { | ||||
| @@ -115,9 +114,11 @@ void AutoResizingNSViewComponentWithParent::timerCallback() override | |||||
| setView(child); | setView(child); | ||||
| } | } | ||||
| } | } | ||||
| #endif | |||||
| # endif | |||||
| } // namespace juce | } // namespace juce | ||||
| using juce::AutoResizingNSViewComponentWithParent; | using juce::AutoResizingNSViewComponentWithParent; | ||||
| #endif | #endif | ||||
| // ----------------------------------------------------- | // ----------------------------------------------------- | ||||