DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit bd1d8bc19fa37d97e173917ff22b9f9fd175900e
parent 800eecbd5ad8f2562a986ecf686eb78d0455cd61
Author: falkTX <falktx@gmail.com>
Date:   Sat, 17 May 2014 03:22:35 +0100

Misc

Diffstat:
Mdistrho/src/DistrhoPluginInternal.hpp | 2+-
Mdistrho/src/DistrhoPluginJack.cpp | 4++--
Mdistrho/src/DistrhoUIInternal.hpp | 7+++++--
3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/distrho/src/DistrhoPluginInternal.hpp b/distrho/src/DistrhoPluginInternal.hpp @@ -407,7 +407,7 @@ public: private: // ------------------------------------------------------------------- - // private members accessed by DistrhoPlugin classes + // Plugin and DistrhoPlugin data Plugin* const fPlugin; Plugin::PrivateData* const fData; diff --git a/distrho/src/DistrhoPluginJack.cpp b/distrho/src/DistrhoPluginJack.cpp @@ -35,7 +35,7 @@ START_NAMESPACE_DISTRHO class PluginJack { public: - PluginJack(jack_client_t* client) + PluginJack(jack_client_t* const client) : fPlugin(), fUI(this, 0, nullptr, nullptr, nullptr, nullptr, uiResizeCallback, fPlugin.getInstancePointer()), fClient(client) @@ -134,7 +134,7 @@ protected: #endif #if DISTRHO_PLUGIN_NUM_OUTPUTS > 0 - float* audioOuts[DISTRHO_PLUGIN_NUM_OUTPUTS]; + float* audioOuts[DISTRHO_PLUGIN_NUM_OUTPUTS]; for (uint32_t i=0; i < DISTRHO_PLUGIN_NUM_OUTPUTS; ++i) audioOuts[i] = (float*)jack_port_get_buffer(fPortAudioOuts[i], nframes); diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp @@ -255,6 +255,9 @@ public: void setSize(const uint width, const uint height) { + DISTRHO_SAFE_ASSERT_RETURN(fUi != nullptr,); + + fUi->setSize(width, height); glWindow.setSize(width, height); } @@ -283,13 +286,13 @@ protected: private: // ------------------------------------------------------------------- - // DGL Application and Window for this plugin + // DGL Application and Window for this widget DGL::App glApp; DGL::Window glWindow; // ------------------------------------------------------------------- - // private members accessed by DistrhoUI classes + // Widget and DistrhoUI data UI* const fUi; UI::PrivateData* const fData;