| @@ -1843,16 +1843,16 @@ public: | |||||
| if (fDescriptor != nullptr && fDescriptor->dispatcher != nullptr) | if (fDescriptor != nullptr && fDescriptor->dispatcher != nullptr) | ||||
| { | { | ||||
| fDescriptor->dispatcher(fHandle, PLUGIN_OPCODE_BUFFER_SIZE_CHANGED, 0, newBufferSize, nullptr, 0.0f); | |||||
| fDescriptor->dispatcher(fHandle, PLUGIN_OPCODE_BUFFER_SIZE_CHANGED, 0, static_cast<intptr_t>(newBufferSize), nullptr, 0.0f); | |||||
| if (fHandle2 != nullptr) | if (fHandle2 != nullptr) | ||||
| fDescriptor->dispatcher(fHandle2, PLUGIN_OPCODE_BUFFER_SIZE_CHANGED, 0, newBufferSize, nullptr, 0.0f); | |||||
| fDescriptor->dispatcher(fHandle2, PLUGIN_OPCODE_BUFFER_SIZE_CHANGED, 0, static_cast<intptr_t>(newBufferSize), nullptr, 0.0f); | |||||
| } | } | ||||
| } | } | ||||
| void sampleRateChanged(const double newSampleRate) override | void sampleRateChanged(const double newSampleRate) override | ||||
| { | { | ||||
| CARLA_ASSERT_INT(newSampleRate > 0.0, (int)newSampleRate); | |||||
| CARLA_ASSERT_INT(newSampleRate > 0.0, newSampleRate); | |||||
| carla_debug("NativePlugin::sampleRateChanged(%g)", newSampleRate); | carla_debug("NativePlugin::sampleRateChanged(%g)", newSampleRate); | ||||
| if (fDescriptor != nullptr && fDescriptor->dispatcher != nullptr) | if (fDescriptor != nullptr && fDescriptor->dispatcher != nullptr) | ||||
| @@ -204,6 +204,7 @@ lib%.so: | |||||
| clean: | clean: | ||||
| rm -f *.a *.def *.dll *.dylib *.so | rm -f *.a *.def *.dll *.dylib *.so | ||||
| $(MAKE) clean -C audio_decoder | |||||
| $(MAKE) clean -C native-plugins | $(MAKE) clean -C native-plugins | ||||
| $(MAKE) clean -C dgl | $(MAKE) clean -C dgl | ||||
| $(MAKE) clean -C jackbridge | $(MAKE) clean -C jackbridge | ||||
| @@ -216,6 +217,7 @@ clean: | |||||
| $(MAKE) clean -C juce_events | $(MAKE) clean -C juce_events | ||||
| $(MAKE) clean -C juce_graphics | $(MAKE) clean -C juce_graphics | ||||
| $(MAKE) clean -C juce_gui_basics | $(MAKE) clean -C juce_gui_basics | ||||
| $(MAKE) clean -C juce_gui_extra | |||||
| $(MAKE) clean -C lilv | $(MAKE) clean -C lilv | ||||
| $(MAKE) clean -C rtaudio | $(MAKE) clean -C rtaudio | ||||
| $(MAKE) clean -C rtmidi | $(MAKE) clean -C rtmidi | ||||
| @@ -32,6 +32,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef DISTRHO_OS_WINDOWS | #ifdef DISTRHO_OS_WINDOWS | ||||
| # include <winsock2.h> | |||||
| # include <windows.h> | # include <windows.h> | ||||
| #else | #else | ||||
| # include <unistd.h> | # include <unistd.h> | ||||
| @@ -20,6 +20,13 @@ | |||||
| #include "juce_audio_processors.h" | #include "juce_audio_processors.h" | ||||
| #include "juce_gui_extra.h" | #include "juce_gui_extra.h" | ||||
| // ----------------------------------------------------------------------- | |||||
| namespace juce { | |||||
| #include "jucepluginhost/juce_MidiKeyboardComponent.h" | |||||
| #include "jucepluginhost/juce_MidiKeyboardComponent.cpp" | |||||
| } | |||||
| using namespace juce; | using namespace juce; | ||||
| // ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
| @@ -260,9 +267,6 @@ void carla_register_native_plugin_jucepatchbay() | |||||
| // ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
| #include "jucepluginhost/juce_MidiKeyboardComponent.h" | |||||
| #include "jucepluginhost/juce_MidiKeyboardComponent.cpp" | |||||
| #include "jucepluginhost/FilterGraph.cpp" | #include "jucepluginhost/FilterGraph.cpp" | ||||
| #include "jucepluginhost/InternalFilters.cpp" | #include "jucepluginhost/InternalFilters.cpp" | ||||
| #include "jucepluginhost/GraphEditorPanel.cpp" | #include "jucepluginhost/GraphEditorPanel.cpp" | ||||
| @@ -562,10 +562,10 @@ public: | |||||
| float x1, y1, x2, y2; | float x1, y1, x2, y2; | ||||
| getPoints (x1, y1, x2, y2); | getPoints (x1, y1, x2, y2); | ||||
| const Rectangle<int> newBounds ((int) jmin (x1, x2) - 4, | |||||
| (int) jmin (y1, y2) - 4, | |||||
| (int) std::abs (x1 - x2) + 8, | |||||
| (int) std::abs (y1 - y2) + 8); | |||||
| const juce::Rectangle<int> newBounds ((int) jmin (x1, x2) - 4, | |||||
| (int) jmin (y1, y2) - 4, | |||||
| (int) std::abs (x1 - x2) + 8, | |||||
| (int) std::abs (y1 - y2) + 8); | |||||
| if (newBounds != getBounds()) | if (newBounds != getBounds()) | ||||
| setBounds (newBounds); | setBounds (newBounds); | ||||
| @@ -16,6 +16,8 @@ | |||||
| */ | */ | ||||
| #include "CarlaNative.h" | #include "CarlaNative.h" | ||||
| #include "CarlaDefines.h" | |||||
| #include "CarlaMIDI.h" | #include "CarlaMIDI.h" | ||||
| #include <math.h> | #include <math.h> | ||||