Browse Source

Return invalid-arg if port group is not mono or stereo

Signed-off-by: falkTX <falktx@falktx.com>
pull/321/head
falkTX 3 years ago
parent
commit
f9e6b101a1
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      distrho/src/DistrhoPluginVST3.cpp

+ 6
- 0
distrho/src/DistrhoPluginVST3.cpp View File

@@ -1038,6 +1038,8 @@ public:
arr = V3_SPEAKER_L | V3_SPEAKER_R;
break;
default:
return V3_INVALID_ARG;
/*
if (inputBuses.audio != 0 && ubusId == 0)
{
arr = 0x0;
@@ -1054,6 +1056,7 @@ public:
{
arr = 1ull << (inputBuses.numMainAudio + inputBuses.numSidechain + ubusId + 33ull);
}
*/
break;
}

@@ -1085,6 +1088,8 @@ public:
arr = V3_SPEAKER_L | V3_SPEAKER_R;
break;
default:
return V3_INVALID_ARG;
/*
if (outputBuses.audio != 0 && ubusId == 0)
{
arr = 0x0;
@@ -1101,6 +1106,7 @@ public:
{
arr = 1ull << (outputBuses.numMainAudio + outputBuses.numSidechain + ubusId + 33ull);
}
*/
break;
}



Loading…
Cancel
Save