DescriptionDisable low latency audio under remote desktop sessions.
CoreAudio seems to be the source of a lot of hangs when under a
remote desktop session and we've had past success with moving
these users over to WaveOut, so do so for all remote sessions.
This first queries the SM_REMOTESESSION system metric and then
tries to get the friendly name of the default audio device; if
it can't do that and a remote session is present or it can and
friendly name is "Remote Audio", CoreAudio functions are
disabled.
This change also adds a check to WASAPIAudioOutputStream::Open
to fail when a remote audio stream is requested; which will
trigger fallback in the AudioOutputResampler (if the user
resumes their session locally later they'll get WASAPI again
once streams have been closed for a few seconds).
BUG=422522
TEST=remote desktop session w/ remote audio gets WaveOut; works
with xfreerdp and Microsoft Remote Desktop client for OS; local
session gets WASAPI, connecting and starting a stream remotely
gets WaveOut.
Committed: https://crrev.com/d0d6ea4bbdd431f0b794ae5e8cf353e2e87593ab
Cr-Commit-Position: refs/heads/master@{#324246}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Disable for remote audio, on Open() too. #
Total comments: 9
Messages
Total messages: 14 (3 generated)
|