Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Issue 1060673002: Disable low latency audio under remote desktop sessions. (Closed)

Created:
5 years, 8 months ago by DaleCurtis
Modified:
5 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
http://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -49 lines) Patch
M media/audio/win/audio_low_latency_output_win.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M media/audio/win/core_audio_util_win.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/win/core_audio_util_win.cc View 1 6 chunks +112 lines, -49 lines 9 comments Download

Messages

Total messages: 14 (3 generated)
DaleCurtis
WDYT? I'd rather only do this for users who enable "remote audio" instead of "local ...
5 years, 8 months ago (2015-04-03 19:14:51 UTC) #2
henrika (OOO until Aug 14)
LGTM. I don't know any alternative way of detecting. https://codereview.chromium.org/1060673002/diff/1/media/audio/win/core_audio_util_win.cc File media/audio/win/core_audio_util_win.cc (right): https://codereview.chromium.org/1060673002/diff/1/media/audio/win/core_audio_util_win.cc#newcode181 media/audio/win/core_audio_util_win.cc:181: ...
5 years, 8 months ago (2015-04-05 14:41:08 UTC) #3
henrika (OOO until Aug 14)
FYI, https://msdn.microsoft.com/en-us/library/aa383838.aspx
5 years, 8 months ago (2015-04-05 14:47:17 UTC) #4
DaleCurtis
Thanks for the link Henrik, I wasn't able to find any data structure which even ...
5 years, 8 months ago (2015-04-06 19:10:12 UTC) #6
henrika (OOO until Aug 14)
Looks great Dale. Nice work ;-) LGTM with nits. Tommi may have additional comments as ...
5 years, 8 months ago (2015-04-07 07:41:08 UTC) #7
DaleCurtis
https://codereview.chromium.org/1060673002/diff/40001/media/audio/win/core_audio_util_win.cc File media/audio/win/core_audio_util_win.cc (right): https://codereview.chromium.org/1060673002/diff/40001/media/audio/win/core_audio_util_win.cc#newcode181 media/audio/win/core_audio_util_win.cc:181: hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); On 2015/04/07 07:41:08, henrika wrote: ...
5 years, 8 months ago (2015-04-07 22:24:54 UTC) #8
henrika (OOO until Aug 14)
https://codereview.chromium.org/1060673002/diff/40001/media/audio/win/core_audio_util_win.cc File media/audio/win/core_audio_util_win.cc (right): https://codereview.chromium.org/1060673002/diff/40001/media/audio/win/core_audio_util_win.cc#newcode181 media/audio/win/core_audio_util_win.cc:181: hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); I think you are correct ...
5 years, 8 months ago (2015-04-08 06:57:36 UTC) #9
DaleCurtis
Crashes are pretty high, so I'm going to land this since tommi@ is out of ...
5 years, 8 months ago (2015-04-08 16:16:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060673002/40001
5 years, 8 months ago (2015-04-08 16:17:22 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 8 months ago (2015-04-08 17:21:49 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 17:23:39 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d0d6ea4bbdd431f0b794ae5e8cf353e2e87593ab
Cr-Commit-Position: refs/heads/master@{#324246}

Powered by Google App Engine
This is Rietveld 408576698