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

Issue 1276523004: Fix WASAPI restriction to be based on period size; fixes Win10. (Closed)

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

Description

Fix WASAPI restriction to be based on period size; fixes Win10. The code was forcing the output buffer size to be an even divisor of endpoint buffer size; in seemingly 90%+ of cases this worked prior to Windows 10. With Windows 10, the device period is no longer an even divisor of the endpoint buffer size; e.g. my local machine has a period of 512 and a endpoint buffer of 1126. In retrospect this restriction seems incorrect; instead it seems like we just want to ensure that the buffer size is an even divisor of the device period (which ultimately determines the callback schedule). I've changed the code to log a warning when this is not the case, as things will still work, we'll just get glitches. The log will help us identify users who file bug reports. The code was also looping over the available end point buffer size, which seems incorrect, we should fulfill only one period at a time to avoid shared-memory induced glitches; this was added to fix http://crbug.com/170498 BUG=516196 TEST=Windows 10 audio works on two devices, Windows 7 works fine, traces show that callbacks are regular in all cases. Confirmed that http://crbug.com/170498 is not regressed on X-Fi. Committed: https://crrev.com/a7be0758c5f97679d0aed6b7f8c1f395d0d62d5c Cr-Commit-Position: refs/heads/master@{#342334}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -82 lines) Patch
M media/audio/win/audio_low_latency_output_win.cc View 2 chunks +93 lines, -82 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
DaleCurtis
5 years, 4 months ago (2015-08-06 23:22:59 UTC) #2
tommi (sloooow) - chröme
lgtm
5 years, 4 months ago (2015-08-07 10:16:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276523004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276523004/1
5 years, 4 months ago (2015-08-07 10:17:04 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 4 months ago (2015-08-07 11:16:40 UTC) #6
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 11:17:22 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a7be0758c5f97679d0aed6b7f8c1f395d0d62d5c
Cr-Commit-Position: refs/heads/master@{#342334}

Powered by Google App Engine
This is Rietveld 408576698