Silent audio outputs if no driver active, rather than pass-through
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
6731453b24
commit
8a773cba62
1 changed files with 2 additions and 4 deletions
|
|
@ -343,10 +343,8 @@ protected:
|
||||||
|
|
||||||
if (fCurrentDevice == nullptr)
|
if (fCurrentDevice == nullptr)
|
||||||
{
|
{
|
||||||
if (outputs[0] != inputs[0])
|
std::memset(outputs[0], 0, sizeof(float)*frames);
|
||||||
std::memcpy(outputs[0], inputs[0], sizeof(float)*frames);
|
std::memset(outputs[1], 0, sizeof(float)*frames);
|
||||||
if (outputs[1] != inputs[1])
|
|
||||||
std::memcpy(outputs[1], inputs[1], sizeof(float)*frames);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue