HostAudio2: Use L/Mono sound on R if R is disconnected

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-01-24 18:41:39 +00:00
parent e29243af60
commit 76e7de2399
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -103,6 +103,9 @@ struct HostAudio : Module {
dataOuts[i][k] += clamp(v * gain, -1.0f, 1.0f);
}
if (numInputs == 2 && ! inputs[1].isConnected())
dataOuts[1][k] += dataOuts[0][k];
}
json_t* dataToJson() override