Browse Source

Fix Audio2 meters stuck state when both L & R are disconnected

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.05
falkTX 3 years ago
parent
commit
b296259bde
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      plugins/Cardinal/src/HostAudio.cpp

+ 10
- 0
plugins/Cardinal/src/HostAudio.cpp View File

@@ -158,7 +158,17 @@ struct HostAudio2 : HostAudio<2> {
void processTerminalOutput(const ProcessArgs&) override
{
if (!in1connected && !in2connected)
{
#ifndef HEADLESS
if (resetMeters)
{
internalDataFrame = 0;
gainMeterL = gainMeterR = 0.0f;
resetMeters = false;
}
#endif
return;
}

const uint32_t bufferSize = pcontext->bufferSize;



Loading…
Cancel
Save