Browse Source

Misc

tags/1.9.4
falkTX 10 years ago
parent
commit
70712312d6
6 changed files with 19 additions and 10 deletions
  1. +3
    -3
      source/backend/plugin/NativePlugin.cpp
  2. +2
    -0
      source/modules/Makefile
  3. +1
    -0
      source/modules/distrho/DistrhoUtils.hpp
  4. +7
    -3
      source/modules/native-plugins/juce-patchbay.cpp
  5. +4
    -4
      source/modules/native-plugins/jucepluginhost/GraphEditorPanel.cpp
  6. +2
    -0
      source/modules/native-plugins/lfo.c

+ 3
- 3
source/backend/plugin/NativePlugin.cpp View File

@@ -1843,16 +1843,16 @@ public:

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)
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
{
CARLA_ASSERT_INT(newSampleRate > 0.0, (int)newSampleRate);
CARLA_ASSERT_INT(newSampleRate > 0.0, newSampleRate);
carla_debug("NativePlugin::sampleRateChanged(%g)", newSampleRate);

if (fDescriptor != nullptr && fDescriptor->dispatcher != nullptr)


+ 2
- 0
source/modules/Makefile View File

@@ -204,6 +204,7 @@ lib%.so:

clean:
rm -f *.a *.def *.dll *.dylib *.so
$(MAKE) clean -C audio_decoder
$(MAKE) clean -C native-plugins
$(MAKE) clean -C dgl
$(MAKE) clean -C jackbridge
@@ -216,6 +217,7 @@ clean:
$(MAKE) clean -C juce_events
$(MAKE) clean -C juce_graphics
$(MAKE) clean -C juce_gui_basics
$(MAKE) clean -C juce_gui_extra
$(MAKE) clean -C lilv
$(MAKE) clean -C rtaudio
$(MAKE) clean -C rtmidi


+ 1
- 0
source/modules/distrho/DistrhoUtils.hpp View File

@@ -32,6 +32,7 @@
#endif

#ifdef DISTRHO_OS_WINDOWS
# include <winsock2.h>
# include <windows.h>
#else
# include <unistd.h>


+ 7
- 3
source/modules/native-plugins/juce-patchbay.cpp View File

@@ -20,6 +20,13 @@
#include "juce_audio_processors.h"
#include "juce_gui_extra.h"

// -----------------------------------------------------------------------

namespace juce {
#include "jucepluginhost/juce_MidiKeyboardComponent.h"
#include "jucepluginhost/juce_MidiKeyboardComponent.cpp"
}

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/InternalFilters.cpp"
#include "jucepluginhost/GraphEditorPanel.cpp"


+ 4
- 4
source/modules/native-plugins/jucepluginhost/GraphEditorPanel.cpp View File

@@ -562,10 +562,10 @@ public:
float 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())
setBounds (newBounds);


+ 2
- 0
source/modules/native-plugins/lfo.c View File

@@ -16,6 +16,8 @@
*/

#include "CarlaNative.h"

#include "CarlaDefines.h"
#include "CarlaMIDI.h"

#include <math.h>


Loading…
Cancel
Save