Browse Source

Update to latest dpf

master
falkTX 10 years ago
parent
commit
d8a2193b68
6 changed files with 26 additions and 35 deletions
  1. +1
    -1
      dpf
  2. +2
    -10
      plugins/ProM/DistrhoPluginInfo.h
  3. +4
    -4
      plugins/ProM/DistrhoPluginProM.cpp
  4. +10
    -10
      plugins/ProM/DistrhoPluginProM.hpp
  5. +6
    -7
      plugins/ProM/DistrhoUIProM.cpp
  6. +3
    -3
      plugins/ProM/DistrhoUIProM.hpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 053854daf007c4aeeda43c26de124181e6187cf2
Subproject commit 67b302dc3b038fafa20fbe6fa6bdddfbaf9d0b02

+ 2
- 10
plugins/ProM/DistrhoPluginInfo.h View File

@@ -18,21 +18,13 @@
#define DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED


#define DISTRHO_PLUGIN_NAME "ProM" #define DISTRHO_PLUGIN_NAME "ProM"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/plugins/ProM"


#define DISTRHO_PLUGIN_HAS_UI 1 #define DISTRHO_PLUGIN_HAS_UI 1
#define DISTRHO_PLUGIN_IS_SYNTH 0

#define DISTRHO_PLUGIN_NUM_INPUTS 1 #define DISTRHO_PLUGIN_NUM_INPUTS 1
#define DISTRHO_PLUGIN_NUM_OUTPUTS 1 #define DISTRHO_PLUGIN_NUM_OUTPUTS 1


#define DISTRHO_PLUGIN_WANT_LATENCY 0
#define DISTRHO_PLUGIN_WANT_PROGRAMS 0
#define DISTRHO_PLUGIN_WANT_STATE 0
#define DISTRHO_PLUGIN_WANT_TIMEPOS 0

#define DISTRHO_PLUGIN_IS_RT_SAFE 0
// required by projectM
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1 #define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1


#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/plugins/ProM"

#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED #endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

+ 4
- 4
plugins/ProM/DistrhoPluginProM.cpp View File

@@ -36,26 +36,26 @@ DistrhoPluginProM::~DistrhoPluginProM()
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// Init // Init
void DistrhoPluginProM::d_initParameter(uint32_t, Parameter&)
void DistrhoPluginProM::initParameter(uint32_t, Parameter&)
{ {
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// Internal data // Internal data
float DistrhoPluginProM::d_getParameterValue(uint32_t) const
float DistrhoPluginProM::getParameterValue(uint32_t) const
{ {
return 0.0f; return 0.0f;
} }
void DistrhoPluginProM::d_setParameterValue(uint32_t, float)
void DistrhoPluginProM::setParameterValue(uint32_t, float)
{ {
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// Process // Process
void DistrhoPluginProM::d_run(const float** inputs, float** outputs, uint32_t frames)
void DistrhoPluginProM::run(const float** inputs, float** outputs, uint32_t frames)
{ {
const float* in = inputs[0]; const float* in = inputs[0];
float* out = outputs[0]; float* out = outputs[0];


+ 10
- 10
plugins/ProM/DistrhoPluginProM.hpp View File

@@ -19,7 +19,7 @@
#include "DistrhoPlugin.hpp" #include "DistrhoPlugin.hpp"
#include "extra/d_mutex.hpp"
#include "extra/Mutex.hpp"
class projectM; class projectM;
class DistrhoUIProM; class DistrhoUIProM;
@@ -38,27 +38,27 @@ protected:
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Information // Information
const char* d_getLabel() const noexcept override
const char* getLabel() const noexcept override
{ {
return "ProM"; return "ProM";
} }
const char* d_getMaker() const noexcept override
const char* getMaker() const noexcept override
{ {
return "DISTRHO"; return "DISTRHO";
} }
const char* d_getLicense() const noexcept override
const char* getLicense() const noexcept override
{ {
return "LGPL"; return "LGPL";
} }
uint32_t d_getVersion() const noexcept override
uint32_t getVersion() const noexcept override
{ {
return 0x1000; return 0x1000;
} }
int64_t d_getUniqueId() const noexcept override
int64_t getUniqueId() const noexcept override
{ {
return d_cconst('D', 'P', 'r', 'M'); return d_cconst('D', 'P', 'r', 'M');
} }
@@ -66,18 +66,18 @@ protected:
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Init // Init
void d_initParameter(uint32_t, Parameter&) override;
void initParameter(uint32_t, Parameter&) override;
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Internal data // Internal data
float d_getParameterValue(uint32_t) const override;
void d_setParameterValue(uint32_t, float) override;
float getParameterValue(uint32_t) const override;
void setParameterValue(uint32_t, float) override;
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Process // Process
void d_run(const float** inputs, float** outputs, uint32_t frames) override;
void run(const float** inputs, float** outputs, uint32_t frames) override;
// ------------------------------------------------------------------- // -------------------------------------------------------------------


+ 6
- 7
plugins/ProM/DistrhoUIProM.cpp View File

@@ -47,14 +47,13 @@ static const projectM::Settings kSettings = {
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------


DistrhoUIProM::DistrhoUIProM() DistrhoUIProM::DistrhoUIProM()
: UI()
: UI(512, 512)
{ {
setSize(512, 512);
} }


DistrhoUIProM::~DistrhoUIProM() DistrhoUIProM::~DistrhoUIProM()
{ {
if (DistrhoPluginProM* const dspPtr = (DistrhoPluginProM*)d_getPluginInstancePointer())
if (DistrhoPluginProM* const dspPtr = (DistrhoPluginProM*)getPluginInstancePointer())
{ {
const MutexLocker csm(dspPtr->fMutex); const MutexLocker csm(dspPtr->fMutex);
dspPtr->fPM = nullptr; dspPtr->fPM = nullptr;
@@ -64,21 +63,21 @@ DistrhoUIProM::~DistrhoUIProM()
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// DSP Callbacks // DSP Callbacks


void DistrhoUIProM::d_parameterChanged(uint32_t, float)
void DistrhoUIProM::parameterChanged(uint32_t, float)
{ {
} }


// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// UI Callbacks // UI Callbacks


void DistrhoUIProM::d_uiIdle()
void DistrhoUIProM::uiIdle()
{ {
if (fPM == nullptr) if (fPM == nullptr)
return; return;


repaint(); repaint();


if (DistrhoPluginProM* const dspPtr = (DistrhoPluginProM*)d_getPluginInstancePointer())
if (DistrhoPluginProM* const dspPtr = (DistrhoPluginProM*)getPluginInstancePointer())
{ {
if (dspPtr->fPM != nullptr) if (dspPtr->fPM != nullptr)
return; return;
@@ -88,7 +87,7 @@ void DistrhoUIProM::d_uiIdle()
} }
} }


void DistrhoUIProM::d_uiReshape(uint width, uint height)
void DistrhoUIProM::uiReshape(uint width, uint height)
{ {
glEnable(GL_BLEND); glEnable(GL_BLEND);
glEnable(GL_LINE_SMOOTH); glEnable(GL_LINE_SMOOTH);


+ 3
- 3
plugins/ProM/DistrhoUIProM.hpp View File

@@ -35,13 +35,13 @@ protected:
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// DSP Callbacks // DSP Callbacks


void d_parameterChanged(uint32_t, float) override;
void parameterChanged(uint32_t, float) override;


// ------------------------------------------------------------------- // -------------------------------------------------------------------
// UI Callbacks // UI Callbacks


void d_uiIdle() override;
void d_uiReshape(uint width, uint height) override;
void uiIdle() override;
void uiReshape(uint width, uint height) override;


// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Widget Callbacks // Widget Callbacks


Loading…
Cancel
Save