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

Issue 7755001: Workaround for race condition between audio host and renderer (Closed)

Created:
9 years, 3 months ago by enal
Modified:
9 years, 3 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing)
Visibility:
Public.

Description

Windows-only change -- issue is worst on Windows because of pre-buffering. On Linux problem is much milder, and on Mac we cannot yield high-priority audio thread... Very short-term change: while working on proper long-term solution, workaround for race condition that causes clicks and bad audio stream. Yield if reader was called too quickly after previous call, as there are good chances renderer thread did not fill the buffer yet. BUG=http://code.google.com/p/chromium/issues/detail?id=61022 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99236 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101231

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -4 lines) Patch
M content/browser/renderer_host/media/audio_sync_reader.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.cc View 1 2 3 4 3 chunks +23 lines, -2 lines 0 comments Download
M media/audio/audio_util.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/audio_util.cc View 1 2 3 3 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
enal
9 years, 3 months ago (2011-08-31 16:41:54 UTC) #1
scherkus (not reviewing)
Can you update CL description with suitable BUG= number? LGTM w/ nits http://codereview.chromium.org/7755001/diff/6001/content/browser/renderer_host/media/audio_sync_reader.cc File content/browser/renderer_host/media/audio_sync_reader.cc ...
9 years, 3 months ago (2011-09-01 03:16:48 UTC) #2
commit-bot: I haz the power
Try job failure for 7755001-11001 (retry) on mac for step "compile" (clobber build). It's a ...
9 years, 3 months ago (2011-09-01 18:38:10 UTC) #3
commit-bot: I haz the power
Change committed as 99236
9 years, 3 months ago (2011-09-01 20:16:59 UTC) #4
commit-bot: I haz the power
9 years, 3 months ago (2011-09-15 02:35:49 UTC) #5
Change committed as 101231

Powered by Google App Engine
This is Rietveld 408576698