Browse Source

Misc

gh-pages
falkTX 8 years ago
parent
commit
66d720e36f
6 changed files with 14 additions and 12 deletions
  1. +2
    -0
      .gitignore
  2. +2
    -2
      distrho/DistrhoPlugin.hpp
  3. +2
    -2
      distrho/src/DistrhoPluginInternal.hpp
  4. +2
    -2
      distrho/src/DistrhoPluginLADSPA+DSSI.cpp
  5. +3
    -3
      distrho/src/DistrhoPluginLV2.cpp
  6. +3
    -3
      distrho/src/DistrhoPluginVST.cpp

+ 2
- 0
.gitignore View File

@@ -9,6 +9,8 @@
.kdev_include_paths
.kdev4/

utils/lv2_ttl_generator

examples/dgl-app
examples/dgl-color
examples/dgl-images

+ 2
- 2
distrho/DistrhoPlugin.hpp View File

@@ -285,9 +285,9 @@ protected:
virtual void d_activate() {}
virtual void d_deactivate() {}
#if DISTRHO_PLUGIN_IS_SYNTH
virtual void d_run(float** inputs, float** outputs, uint32_t frames, const MidiEvent* midiEvents, uint32_t midiEventCount) = 0;
virtual void d_run(const float** inputs, float** outputs, uint32_t frames, const MidiEvent* midiEvents, uint32_t midiEventCount) = 0;
#else
virtual void d_run(float** inputs, float** outputs, uint32_t frames) = 0;
virtual void d_run(const float** inputs, float** outputs, uint32_t frames) = 0;
#endif

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


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

@@ -351,14 +351,14 @@ public:
}

#if DISTRHO_PLUGIN_IS_SYNTH
void run(float** const inputs, float** const outputs, const uint32_t frames, const MidiEvent* const midiEvents, const uint32_t midiEventCount)
void run(const float** const inputs, float** const outputs, const uint32_t frames, const MidiEvent* const midiEvents, const uint32_t midiEventCount)
{
DISTRHO_SAFE_ASSERT_RETURN(fPlugin != nullptr,);

fPlugin->d_run(inputs, outputs, frames, midiEvents, midiEventCount);
}
#else
void run(float** const inputs, float** const outputs, const uint32_t frames)
void run(const float** const inputs, float** const outputs, const uint32_t frames)
{
DISTRHO_SAFE_ASSERT_RETURN(fPlugin != nullptr,);



+ 2
- 2
distrho/src/DistrhoPluginLADSPA+DSSI.cpp View File

@@ -334,9 +334,9 @@ private:

// LADSPA ports
#if DISTRHO_PLUGIN_NUM_INPUTS > 0
LADSPA_Data* fPortAudioIns[DISTRHO_PLUGIN_NUM_INPUTS];
const LADSPA_Data* fPortAudioIns[DISTRHO_PLUGIN_NUM_INPUTS];
#else
LADSPA_Data** fPortAudioIns;
const LADSPA_Data** fPortAudioIns;
#endif
#if DISTRHO_PLUGIN_NUM_OUTPUTS > 0
LADSPA_Data* fPortAudioOuts[DISTRHO_PLUGIN_NUM_OUTPUTS];


+ 3
- 3
distrho/src/DistrhoPluginLV2.cpp View File

@@ -175,7 +175,7 @@ public:
{
if (port == index++)
{
fPortAudioIns[i] = (float*)dataLocation;
fPortAudioIns[i] = (const float*)dataLocation;
return;
}
}
@@ -677,9 +677,9 @@ private:

// LV2 ports
#if DISTRHO_PLUGIN_NUM_INPUTS > 0
float* fPortAudioIns[DISTRHO_PLUGIN_NUM_INPUTS];
const float* fPortAudioIns[DISTRHO_PLUGIN_NUM_INPUTS];
#else
float** fPortAudioIns;
const float** fPortAudioIns;
#endif
#if DISTRHO_PLUGIN_NUM_OUTPUTS > 0
float* fPortAudioOuts[DISTRHO_PLUGIN_NUM_OUTPUTS];


+ 3
- 3
distrho/src/DistrhoPluginVST.cpp View File

@@ -638,7 +638,7 @@ public:
#endif
}

void vst_processReplacing(float** const inputs, float** const outputs, const int32_t sampleFrames)
void vst_processReplacing(const float** const inputs, float** const outputs, const int32_t sampleFrames)
{
#if DISTRHO_PLUGIN_WANT_TIMEPOS
static const int kWantedVstTimeFlags(kVstTransportPlaying|kVstTempoValid|kVstTimeSigValid);
@@ -939,13 +939,13 @@ static void vst_setParameterCallback(AEffect* effect, int32_t index, float value
static void vst_processCallback(AEffect* effect, float** inputs, float** outputs, int32_t sampleFrames)
{
if (validEffect)
handlePtr->vst_processReplacing(inputs, outputs, sampleFrames);
handlePtr->vst_processReplacing(const_cast<const float**>(inputs), outputs, sampleFrames);
}

static void vst_processReplacingCallback(AEffect* effect, float** inputs, float** outputs, int32_t sampleFrames)
{
if (validEffect)
handlePtr->vst_processReplacing(inputs, outputs, sampleFrames);
handlePtr->vst_processReplacing(const_cast<const float**>(inputs), outputs, sampleFrames);
}

#undef handlePtr


Loading…
Cancel
Save