280 |
vOutputChannels[i] = new AudioChannel(i, pDevice->MaxSamplesPerCycle()); |
vOutputChannels[i] = new AudioChannel(i, pDevice->MaxSamplesPerCycle()); |
281 |
} |
} |
282 |
|
|
283 |
|
// TODO: recalculate the min and max values that depends on sample rate |
284 |
|
|
285 |
// assign (already created and initialized) control input and control |
// assign (already created and initialized) control input and control |
286 |
// output variables (effect parameters) |
// output variables (effect parameters) |
287 |
int iInControl = 0; |
int iInControl = 0; |
315 |
? pDescriptor->PortRangeHints[iPort].LowerBound : 0.0f; |
? pDescriptor->PortRangeHints[iPort].LowerBound : 0.0f; |
316 |
|
|
317 |
if (pDescriptor->PortRangeHints[iPort].HintDescriptor & LADSPA_HINT_SAMPLE_RATE) |
if (pDescriptor->PortRangeHints[iPort].HintDescriptor & LADSPA_HINT_SAMPLE_RATE) |
318 |
low *= float(pDevice->SampleRate()); |
low *= float(pDevice == NULL ? 44100 : pDevice->SampleRate()); |
319 |
|
|
320 |
return low; |
return low; |
321 |
} |
} |
327 |
? pDescriptor->PortRangeHints[iPort].UpperBound : 1.0f; |
? pDescriptor->PortRangeHints[iPort].UpperBound : 1.0f; |
328 |
|
|
329 |
if (pDescriptor->PortRangeHints[iPort].HintDescriptor & LADSPA_HINT_SAMPLE_RATE) |
if (pDescriptor->PortRangeHints[iPort].HintDescriptor & LADSPA_HINT_SAMPLE_RATE) |
330 |
up *= float(pDevice->SampleRate()); |
up *= float(pDevice == NULL ? 44100 : pDevice->SampleRate()); |
331 |
|
|
332 |
return up; |
return up; |
333 |
} |
} |