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

Issue 2375713003: Fix initial buffer sizes and improve partial underflow support. (Closed)

Created:
4 years, 2 months ago by DaleCurtis
Modified:
4 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix initial buffer sizes and improve partial underflow support. On devices with massive buffer sizes, src= playback will often use a size too small to satisfy the OS request. So we end up only filling most of it, but end up with enough data such that the next call does not cause an underflow. The fixes are two fold: 1. Use a better initial size when possible. 2. Increase queue capacity anytime we have a partial fill. BUG=650601 TEST=new unittests. --audio-buffer-size=11160 doesn't glitch. Committed: https://crrev.com/95d0b149bbb2ec028a24d833ddb5351912f40a93 Cr-Commit-Position: refs/heads/master@{#421691}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -8 lines) Patch
M media/renderers/audio_renderer_impl.cc View 2 chunks +15 lines, -8 lines 2 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 2 chunks +46 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
DaleCurtis
4 years, 2 months ago (2016-09-28 00:47:35 UTC) #2
chcunningham
https://codereview.chromium.org/2375713003/diff/1/media/renderers/audio_renderer_impl.cc File media/renderers/audio_renderer_impl.cc (right): https://codereview.chromium.org/2375713003/diff/1/media/renderers/audio_renderer_impl.cc#newcode858 media/renderers/audio_renderer_impl.cc:858: // If we only partially filled the request and ...
4 years, 2 months ago (2016-09-28 19:59:30 UTC) #7
DaleCurtis
https://codereview.chromium.org/2375713003/diff/1/media/renderers/audio_renderer_impl.cc File media/renderers/audio_renderer_impl.cc (right): https://codereview.chromium.org/2375713003/diff/1/media/renderers/audio_renderer_impl.cc#newcode858 media/renderers/audio_renderer_impl.cc:858: // If we only partially filled the request and ...
4 years, 2 months ago (2016-09-28 21:43:28 UTC) #8
chcunningham1
On 2016/09/28 21:43:28, DaleCurtis wrote: > https://codereview.chromium.org/2375713003/diff/1/media/renderers/audio_renderer_impl.cc > File media/renderers/audio_renderer_impl.cc (right): > > https://codereview.chromium.org/2375713003/diff/1/media/renderers/audio_renderer_impl.cc#newcode858 > ...
4 years, 2 months ago (2016-09-28 22:08:34 UTC) #9
chcunningham1
lgtm
4 years, 2 months ago (2016-09-28 22:08:40 UTC) #11
chcunningham
On 2016/09/28 22:08:40, chcunningham1 wrote: > lgtm @chromium lgtm
4 years, 2 months ago (2016-09-28 22:09:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2375713003/1
4 years, 2 months ago (2016-09-28 22:50:20 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-29 00:14:41 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 00:20:17 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/95d0b149bbb2ec028a24d833ddb5351912f40a93
Cr-Commit-Position: refs/heads/master@{#421691}

Powered by Google App Engine
This is Rietveld 408576698