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

Issue 1318933003: Fix audio glitching on Vista due to unreliable OS callbacks. (Closed)

Created:
5 years, 3 months ago by DaleCurtis
Modified:
5 years 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

Fix audio glitching on Vista due to unreliable OS callbacks. This reverts part of the fix I made for Windows 10 audio, since it inadvertently broke Vista audio. Vista will frequently underflow and ask for more than one buffer at a time. :( While back-to-back reads _may_ lead to glitches with single buffer clients like WebRTC and WebAudio, not allowing them _definitely_ leads to glitches for all clients (even <audio> which double buffers on the browser side). Further, API documentation does not guarantee we won't be asked for more than one buffer regardless of the period size. In practice, outside of Vista this does not seem to happen though. TEST=vista audio glitch free, windows 10 audio glitch free. BUG=524947 Committed: https://crrev.com/cae8b7ed33dcace93561a1e0bb8126cc020001cd Cr-Commit-Position: refs/heads/master@{#347135}

Patch Set 1 : Rebase. Typo. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -57 lines) Patch
M media/audio/win/audio_low_latency_output_win.cc View 1 chunk +76 lines, -57 lines 2 comments Download

Messages

Total messages: 16 (4 generated)
DaleCurtis
What do you think? Since the API doesn't preclude back to back callbacks, I decided ...
5 years, 3 months ago (2015-09-02 18:31:56 UTC) #4
henrika (OOO until Aug 14)
Thanks Dale. Looks good but it would be nice with a more clear view of ...
5 years, 3 months ago (2015-09-03 08:19:49 UTC) #5
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/1318933003/diff/40001/media/audio/win/audio_low_latency_output_win.cc File media/audio/win/audio_low_latency_output_win.cc (right): https://codereview.chromium.org/1318933003/diff/40001/media/audio/win/audio_low_latency_output_win.cc#newcode487 media/audio/win/audio_low_latency_output_win.cc:487: // that the render can fulfill the read ...
5 years, 3 months ago (2015-09-03 08:31:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318933003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318933003/40001
5 years, 3 months ago (2015-09-03 08:31:40 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:40001)
5 years, 3 months ago (2015-09-03 11:15:34 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/cae8b7ed33dcace93561a1e0bb8126cc020001cd Cr-Commit-Position: refs/heads/master@{#347135}
5 years, 3 months ago (2015-09-03 11:16:22 UTC) #10
DaleCurtis
Thanks for review, the only difference the Win10 patch made now is to not block ...
5 years, 3 months ago (2015-09-03 16:36:31 UTC) #11
wdzierzanowski
Hey Dale, This CL breaks WASAPIAudioOutputStreamTest.ValidPacketSize in some cases (Windows 8 in a VM) like ...
5 years ago (2015-11-25 11:57:42 UTC) #12
tommi (sloooow) - chröme
If OnMoreData is called more than expected, then my first instinct would be to fix ...
5 years ago (2015-11-25 12:59:20 UTC) #13
DaleCurtis
Yeah, it seems like your test case is showing that the glitch described in the ...
5 years ago (2015-11-25 17:08:31 UTC) #14
wdzierzanowski
On 2015/11/25 17:08:31, DaleCurtis wrote: > Yeah, it seems like your test case is showing ...
5 years ago (2015-11-30 08:43:07 UTC) #15
wdzierzanowski
5 years ago (2015-12-01 08:35:06 UTC) #16
Message was sent while issue was closed.
Filed https://codereview.chromium.org/1487733003/.

Powered by Google App Engine
This is Rietveld 408576698