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

Issue 12261027: Don't switch to fake audio output until stream open fails. (Closed)

Created:
7 years, 10 months ago by DaleCurtis
Modified:
7 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Don't switch to fake audio output until stream open fails. Moves the selection of fake audio output from AudioManagerBase into AudioOutputResampler. Now instead of silently switching to the fake audio path, we'll fall back into it when all else fails. This works around issues with the HasAudioOutputDevices() code and ensures we don't leave the user in a broken state when audio creation fails. The downside here is that instead of immediately switching to the fake audio path during create stream, we now cycle through the creation of audio streams. BUG=158478, 162953 TEST=Manual, fake audio path takes over when all Open() calls fail. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182989

Patch Set 1 #

Patch Set 2 : Fix unittests. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -12 lines) Patch
M media/audio/audio_manager_base.cc View 2 chunks +1 line, -7 lines 2 comments Download
M media/audio/audio_output_proxy_unittest.cc View 1 1 chunk +32 lines, -2 lines 0 comments Download
M media/audio/audio_output_resampler.cc View 2 chunks +20 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
DaleCurtis
WDYT? I'm not sure about this, but I do think it'll provide a better user ...
7 years, 10 months ago (2013-02-13 23:45:37 UTC) #1
scherkus (not reviewing)
seems like a good thing to do :) OOC any rough #s on how long ...
7 years, 10 months ago (2013-02-14 00:56:03 UTC) #2
DaleCurtis
No measurable overhead on Linux, Windows goes from 10ms -> 40ms. Any connection for the ...
7 years, 10 months ago (2013-02-15 01:42:14 UTC) #3
scherkus (not reviewing)
lgtm https://codereview.chromium.org/12261027/diff/4/media/audio/audio_manager_base.cc File media/audio/audio_manager_base.cc (left): https://codereview.chromium.org/12261027/diff/4/media/audio/audio_manager_base.cc#oldcode111 media/audio/audio_manager_base.cc:111: !HasAudioOutputDevices(); FYI this appeared to be the only ...
7 years, 10 months ago (2013-02-15 18:43:37 UTC) #4
DaleCurtis
https://codereview.chromium.org/12261027/diff/4/media/audio/audio_manager_base.cc File media/audio/audio_manager_base.cc (left): https://codereview.chromium.org/12261027/diff/4/media/audio/audio_manager_base.cc#oldcode111 media/audio/audio_manager_base.cc:111: !HasAudioOutputDevices(); On 2013/02/15 18:43:37, scherkus wrote: > FYI this ...
7 years, 10 months ago (2013-02-15 18:51:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/12261027/4
7 years, 10 months ago (2013-02-15 18:52:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/12261027/4
7 years, 10 months ago (2013-02-15 22:27:59 UTC) #7
commit-bot: I haz the power
7 years, 10 months ago (2013-02-16 18:25:55 UTC) #8
Message was sent while issue was closed.
Change committed as 182989

Powered by Google App Engine
This is Rietveld 408576698