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