Allow host to not supply CV ports
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
946056b1fd
commit
fa1e6a1343
2 changed files with 20 additions and 2 deletions
|
@ -87,6 +87,9 @@ struct HostCV : TerminalModule {
|
|||
}
|
||||
else if (const float* const* const dataIns = pcontext->dataIns)
|
||||
{
|
||||
if (dataIns[CARDINAL_AUDIO_IO_OFFSET] == nullptr)
|
||||
return;
|
||||
|
||||
float outputOffset;
|
||||
outputOffset = params[BIPOLAR_OUTPUTS_1_5].getValue() > 0.1f ? 5.0f : 0.0f;
|
||||
|
||||
|
@ -116,6 +119,9 @@ struct HostCV : TerminalModule {
|
|||
|
||||
float** const dataOuts = pcontext->dataOuts;
|
||||
|
||||
if (dataOuts[CARDINAL_AUDIO_IO_OFFSET] == nullptr)
|
||||
return;
|
||||
|
||||
float inputOffset;
|
||||
inputOffset = params[BIPOLAR_INPUTS_1_5].getValue() > 0.1f ? 5.0f : 0.0f;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue