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

Issue 14573006: Improve recommended sample counts for PPAPI. (Closed)

Created:
7 years, 7 months ago by DaleCurtis
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Improve recommended sample counts for PPAPI. Testing shows we can allow for much lower buffer sizes on WASAPI, OSX, and PulseAudio clients. In most cases, this change brings those clients down to the nearest multiple of 512. WaveOut and ALSA clients will use the nearest multiple of 2048. Based on testing done in https://codereview.chromium.org/14570002/ BUG=162207 TEST=Using these buffer sizes for HTML5 audio works without glitching when an AudioConverter is in the graph. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202775

Patch Set 1 #

Total comments: 7

Patch Set 2 : Comments. #

Patch Set 3 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -20 lines) Patch
M ppapi/shared_impl/ppb_audio_config_shared.cc View 1 2 3 chunks +56 lines, -20 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
DaleCurtis
Still needs a bunch of testing, but this is the general idea. WDYT?
7 years, 7 months ago (2013-05-01 22:59:55 UTC) #1
brettw
I don't have enough backround to know if this is correct or not. I don't ...
7 years, 7 months ago (2013-05-02 21:13:15 UTC) #2
DaleCurtis
+crogers, +henrika for audio correctness review. Is there any worry about impacting existing users of ...
7 years, 7 months ago (2013-05-02 21:35:41 UTC) #3
brettw
I'm not that concerned, as this is supposed to be platform-specific. It's possible we'll break ...
7 years, 7 months ago (2013-05-02 22:40:35 UTC) #4
DaleCurtis
sgtm. Do you know of any PPAPI apps which use this API today? I thought ...
7 years, 7 months ago (2013-05-03 17:19:55 UTC) #5
brettw
No
7 years, 7 months ago (2013-05-03 19:39:58 UTC) #6
Chris Rogers
Thanks Dale, as a followup to this CL I'd recommend that we elevate the audio ...
7 years, 7 months ago (2013-05-03 19:55:05 UTC) #7
DaleCurtis
https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc File ppapi/shared_impl/ppb_audio_config_shared.cc (right): https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc#newcode88 ppapi/shared_impl/ppb_audio_config_shared.cc:88: NOTREACHED() << "Unsupported sample rate, please update " On ...
7 years, 7 months ago (2013-05-03 20:02:08 UTC) #8
henrika (OOO until Aug 14)
"+crogers, +henrika for audio correctness review. Is there any worry about impacting existing users of ...
7 years, 7 months ago (2013-05-06 07:49:22 UTC) #9
DaleCurtis
Essentially just: Given your knowledge of your respective platforms (windows, osx), does this logic looks ...
7 years, 7 months ago (2013-05-06 16:52:00 UTC) #10
henrika (OOO until Aug 14)
https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc File ppapi/shared_impl/ppb_audio_config_shared.cc (right): https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc#newcode117 ppapi/shared_impl/ppb_audio_config_shared.cc:117: const uint32_t kLowLatencySampleFrameCount = 512; Would it be beneficial ...
7 years, 7 months ago (2013-05-13 08:11:56 UTC) #11
DaleCurtis
https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc File ppapi/shared_impl/ppb_audio_config_shared.cc (right): https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc#newcode117 ppapi/shared_impl/ppb_audio_config_shared.cc:117: const uint32_t kLowLatencySampleFrameCount = 512; On 2013/05/13 08:11:56, henrika ...
7 years, 7 months ago (2013-05-13 21:57:36 UTC) #12
henrika (OOO until Aug 14)
LGTM. https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc File ppapi/shared_impl/ppb_audio_config_shared.cc (right): https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc#newcode119 ppapi/shared_impl/ppb_audio_config_shared.cc:119: // Special case for 48kHz -> 44.1kHz and ...
7 years, 7 months ago (2013-05-14 07:29:35 UTC) #13
DaleCurtis
Comments addressed. PTAL. Automated test ideas appreciated. https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc File ppapi/shared_impl/ppb_audio_config_shared.cc (right): https://codereview.chromium.org/14573006/diff/1/ppapi/shared_impl/ppb_audio_config_shared.cc#newcode88 ppapi/shared_impl/ppb_audio_config_shared.cc:88: NOTREACHED() << ...
7 years, 7 months ago (2013-05-21 23:16:43 UTC) #14
DaleCurtis
Ping?
7 years, 7 months ago (2013-05-23 23:58:15 UTC) #15
brettw
owners lgtm rubberstamp
7 years, 6 months ago (2013-05-28 23:26:34 UTC) #16
Chris Rogers
lgtm having discussed with Dale offline
7 years, 6 months ago (2013-05-29 01:15:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/14573006/21001
7 years, 6 months ago (2013-05-29 01:16:29 UTC) #18
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 04:17:10 UTC) #19
Message was sent while issue was closed.
Change committed as 202775

Powered by Google App Engine
This is Rietveld 408576698