Browse Source

carla-discovery: minor fix

tags/v0.9.0
falkTX 12 years ago
parent
commit
166fd8c5b1
2 changed files with 11 additions and 10 deletions
  1. +10
    -10
      c++/carla-discovery/carla-discovery.cpp
  2. +1
    -0
      doc/Carla-TODO

+ 10
- 10
c++/carla-discovery/carla-discovery.cpp View File

@@ -338,11 +338,6 @@ void do_ladspa_check(void* const libHandle, const bool init)
// default value
def = get_default_ladspa_port_value(portHints.HintDescriptor, min, max);

if (def < min)
def = min;
else if (def > max)
def = max;

if (LADSPA_IS_HINT_SAMPLE_RATE(portHints.HintDescriptor))
{
min *= sampleRate;
@@ -358,6 +353,11 @@ void do_ladspa_check(void* const libHandle, const bool init)
def = 0.0f;
}

if (def < min)
def = min;
else if (def > max)
def = max;

bufferParams[iP] = def;

descriptor->connect_port(handle, j, &bufferParams[iP++]);
@@ -524,11 +524,6 @@ void do_dssi_check(void* const libHandle, const bool init)
// default value
def = get_default_ladspa_port_value(portHints.HintDescriptor, min, max);

if (def < min)
def = min;
else if (def > max)
def = max;

if (LADSPA_IS_HINT_SAMPLE_RATE(portHints.HintDescriptor))
{
min *= sampleRate;
@@ -544,6 +539,11 @@ void do_dssi_check(void* const libHandle, const bool init)
def = 0.0f;
}

if (def < min)
def = min;
else if (def > max)
def = max;

bufferParams[iP] = def;

ldescriptor->connect_port(handle, j, &bufferParams[iP++]);


+ 1
- 0
doc/Carla-TODO View File

@@ -21,6 +21,7 @@ ENGINE:
- Handle sample-rate changes in JACK (made possible by switch-master)

LADSPA:
- on reload() only set def,min,max after all changes, apply to dssi and lv2

DSSI:



Loading…
Cancel
Save