Make Host CV work for mini variant, hide unused jacks
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
919e21703b
commit
45022608ab
4 changed files with 140 additions and 56 deletions
|
@ -375,7 +375,11 @@ public:
|
|||
context->dataOuts = new float*[DISTRHO_PLUGIN_NUM_OUTPUTS];
|
||||
|
||||
for (uint32_t i=0; i<DISTRHO_PLUGIN_NUM_INPUTS;++i)
|
||||
*const_cast<float**>(&context->dataIns[i]) = new float[1];
|
||||
{
|
||||
float** const bufferptr = const_cast<float**>(&context->dataIns[i]);
|
||||
*bufferptr = new float[1];
|
||||
(*bufferptr)[0] = 0.f;
|
||||
}
|
||||
for (uint32_t i=0; i<DISTRHO_PLUGIN_NUM_OUTPUTS;++i)
|
||||
context->dataOuts[i] = new float[1];
|
||||
|
||||
|
@ -619,6 +623,8 @@ public:
|
|||
#if CARDINAL_VARIANT_MINI
|
||||
{
|
||||
const ScopedContext sc(this);
|
||||
for (uint32_t i=0; i<DISTRHO_PLUGIN_NUM_OUTPUTS;++i)
|
||||
context->dataOuts[i][0] = 0.f;
|
||||
++context->processCounter;
|
||||
context->engine->stepBlock(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue