Fix headless build; Ignore 2 main CV ins for befaco lv2 test
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
9018ce34c4
commit
9ee6524004
4 changed files with 26 additions and 9 deletions
|
@ -33,7 +33,7 @@ bool cpuMeter = false;
|
|||
}
|
||||
Context::~Context() {
|
||||
}
|
||||
static thread_local Context* threadContext = nullptr;
|
||||
static thread_local Context* threadContext;
|
||||
Context* contextGet() {
|
||||
DISTRHO_SAFE_ASSERT(threadContext != nullptr);
|
||||
return threadContext;
|
||||
|
@ -121,8 +121,8 @@ struct PluginLv2 {
|
|||
frameCount
|
||||
};
|
||||
|
||||
const float* CV1_INPUT = (float*)ports[0];
|
||||
const float* CV2_INPUT = (float*)ports[1];
|
||||
// const float* CV1_INPUT = (float*)ports[0];
|
||||
// const float* CV2_INPUT = (float*)ports[1];
|
||||
const float* IN1_INPUT = (float*)ports[2];
|
||||
const float* IN2_INPUT = (float*)ports[3];
|
||||
const float* MIX_CV_INPUT = (float*)ports[4];
|
||||
|
@ -141,8 +141,8 @@ struct PluginLv2 {
|
|||
|
||||
for (uint32_t i=0; i<sampleCount; ++i)
|
||||
{
|
||||
module->inputs[0].setVoltage(CV1_INPUT[i]);
|
||||
module->inputs[1].setVoltage(CV2_INPUT[i]);
|
||||
// module->inputs[0].setVoltage(CV1_INPUT[i]);
|
||||
// module->inputs[1].setVoltage(CV2_INPUT[i]);
|
||||
module->inputs[2].setVoltage(IN1_INPUT[i] * 10);
|
||||
module->inputs[3].setVoltage(IN2_INPUT[i] * 10);
|
||||
module->inputs[4].setVoltage(MIX_CV_INPUT[i]);
|
||||
|
|
|
@ -17,8 +17,9 @@
|
|||
<urn:Cardinal:Befaco>
|
||||
a lv2:Plugin, doap:Project ;
|
||||
|
||||
# NOTE port 0 and 1 are actually CV ins, but we need some kind of optionally-connected stuff implemented first
|
||||
lv2:port [
|
||||
a lv2:InputPort, lv2:CVPort, mod:CVPort ;
|
||||
a lv2:OutputPort, lv2:ControlPort ;
|
||||
lv2:index 0 ;
|
||||
lv2:symbol "lv2_audio_in_1" ;
|
||||
lv2:name "CV1_INPUT" ;
|
||||
|
@ -26,7 +27,7 @@
|
|||
lv2:minimum 0;
|
||||
lv2:maximum 10;
|
||||
] , [
|
||||
a lv2:InputPort, lv2:CVPort, mod:CVPort ;
|
||||
a lv2:OutputPort, lv2:ControlPort ;
|
||||
lv2:index 1 ;
|
||||
lv2:symbol "lv2_audio_in_2" ;
|
||||
lv2:name "CV2_INPUT" ;
|
||||
|
|
|
@ -28,7 +28,7 @@ Plugin* pluginInstance__Befaco;
|
|||
namespace rack {
|
||||
Context::~Context() {
|
||||
}
|
||||
static thread_local Context* threadContext = nullptr;
|
||||
static thread_local Context* threadContext;
|
||||
Context* contextGet() {
|
||||
DISTRHO_SAFE_ASSERT(threadContext != nullptr);
|
||||
return threadContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue