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

Issue 10993013: Return fixed hardware buffer size for odd sample rates. (Closed)

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

Description

Return fixed hardware buffer size for odd sample rates. Windows will return a sample rate of zero if audio can't be output, in this case we shouldn't return a buffer size of zero. Some hardware also might return a hardware sample rate < 100, in this case we should choose a non-zero fixed buffer size to prevent crashes. In either case, AudioOutputResampler will later check the hardware config for validity and fallback to the high latency audio path in cases where a bogus sample rate exists. BUG=152073 TEST=compiles Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=158651

Patch Set 1 : Comments. #

Total comments: 4

Patch Set 2 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M media/audio/audio_util.cc View 1 4 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
DaleCurtis
8 years, 2 months ago (2012-09-25 18:23:57 UTC) #1
Ami GONE FROM CHROMIUM
LGTM % <IDontKnowWhatImDoing/> https://codereview.chromium.org/10993013/diff/3001/media/audio/audio_util.cc File media/audio/audio_util.cc (right): https://codereview.chromium.org/10993013/diff/3001/media/audio/audio_util.cc#newcode351 media/audio/audio_util.cc:351: return kFallbackBufferSize; any reason you're going ...
8 years, 2 months ago (2012-09-25 18:25:46 UTC) #2
henrika (OOO until Aug 14)
LGTM. Perhaps add a comment that we can see 0 as sample rate using e.g. ...
8 years, 2 months ago (2012-09-25 18:28:26 UTC) #3
DaleCurtis
https://codereview.chromium.org/10993013/diff/3001/media/audio/audio_util.cc File media/audio/audio_util.cc (right): https://codereview.chromium.org/10993013/diff/3001/media/audio/audio_util.cc#newcode351 media/audio/audio_util.cc:351: return kFallbackBufferSize; On 2012/09/25 18:25:46, Ami Fischman wrote: > ...
8 years, 2 months ago (2012-09-25 18:39:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10993013/9001
8 years, 2 months ago (2012-09-25 19:40:59 UTC) #5
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-09-25 19:48:05 UTC) #6
DaleCurtis
8 years, 2 months ago (2012-09-25 21:00:45 UTC) #7
On 2012/09/25 19:48:05, I haz the power (commit-bot) wrote:
> Sorry for I got bad news for ya.
> Compile failed with a clobber build.
> Your code is likely broken or HEAD is junk. Please ensure your
> code is not broken then alert the build sheriffs.
> Look at the try server FAQ for more details.

Landed manually since it passed Windows.

Powered by Google App Engine
This is Rietveld 408576698