Browse Source

Clear zyn fx input buffers on init; Misc

tags/1.9.4
falkTX 11 years ago
parent
commit
00a47f8dbd
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      source/backend/native/zynaddsubfx.cpp

+ 5
- 3
source/backend/native/zynaddsubfx.cpp View File

@@ -586,6 +586,8 @@ protected:
kParamCount(paramCount-2), // volume and pan handled by host
kProgramCount(programCount)
{
carla_zeroFloat(efxoutl, synth->buffersize);
carla_zeroFloat(efxoutr, synth->buffersize);
}

~FxAbstractPlugin() override
@@ -644,7 +646,7 @@ protected:
void setMidiProgram(const uint8_t, const uint32_t, const uint32_t program) final
{
fEffect->setpreset(program);
fFirstInit = false;
//fFirstInit = false;

const float volume(float(fEffect->getpar(0))/127.0f);
hostDispatcher(HOST_OPCODE_SET_VOLUME, 0, 0, nullptr, volume);
@@ -1108,12 +1110,12 @@ protected:
break;
case 5:
hints |= PARAMETER_IS_AUTOMABLE;
param.name = "lpf";
param.name = "Low-Pass Filter";
param.ranges.def = 96.0f;
break;
case 6:
hints |= PARAMETER_IS_AUTOMABLE;
param.name = "hpf";
param.name = "High-Pass Filter";
param.ranges.def = 0.0f;
break;
case 7:


Loading…
Cancel
Save