Browse Source

Misc

gh-pages
falkTX 10 years ago
parent
commit
bd1d8bc19f
3 changed files with 8 additions and 5 deletions
  1. +1
    -1
      distrho/src/DistrhoPluginInternal.hpp
  2. +2
    -2
      distrho/src/DistrhoPluginJack.cpp
  3. +5
    -2
      distrho/src/DistrhoUIInternal.hpp

+ 1
- 1
distrho/src/DistrhoPluginInternal.hpp View File

@@ -407,7 +407,7 @@ public:

private:
// -------------------------------------------------------------------
// private members accessed by DistrhoPlugin classes
// Plugin and DistrhoPlugin data

Plugin* const fPlugin;
Plugin::PrivateData* const fData;


+ 2
- 2
distrho/src/DistrhoPluginJack.cpp View File

@@ -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);


+ 5
- 2
distrho/src/DistrhoUIInternal.hpp View File

@@ -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;


Loading…
Cancel
Save