Fix Audio2 meters stuck state when both L & R are disconnected
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
c89affd980
commit
b296259bde
1 changed files with 10 additions and 0 deletions
|
|
@ -158,7 +158,17 @@ struct HostAudio2 : HostAudio<2> {
|
||||||
void processTerminalOutput(const ProcessArgs&) override
|
void processTerminalOutput(const ProcessArgs&) override
|
||||||
{
|
{
|
||||||
if (!in1connected && !in2connected)
|
if (!in1connected && !in2connected)
|
||||||
|
{
|
||||||
|
#ifndef HEADLESS
|
||||||
|
if (resetMeters)
|
||||||
|
{
|
||||||
|
internalDataFrame = 0;
|
||||||
|
gainMeterL = gainMeterR = 0.0f;
|
||||||
|
resetMeters = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const uint32_t bufferSize = pcontext->bufferSize;
|
const uint32_t bufferSize = pcontext->bufferSize;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue