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

Issue 9129007: Work on improving PpbAudioConfig:RecommendSampleFrameCount (Closed)

Created:
8 years, 11 months ago by nfullagar
Modified:
8 years, 10 months ago
CC:
chromium-reviews, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Work on improving PpbAudioConfig:RecommendSampleFrameCount Add version 1.1 which will query the audio back end for the best available sample frame count. Also add RecommendSampleRate. Switch pepper plugin delegate to use AUDIO_PCM_LOW_LATENCY if client request is compatible. TEST=included BUG=http://code.google.com/p/chromium/issues/detail?id=107572 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122653

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : PPAPI audio, examples #

Patch Set 7 : work in progress #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 14

Patch Set 15 : '' #

Patch Set 16 : '' #

Total comments: 12

Patch Set 17 : '' #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+613 lines, -77 lines) Patch
M content/renderer/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +18 lines, -2 lines 0 comments Download
M ppapi/api/ppb_audio_config.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +59 lines, -4 lines 1 comment Download
M ppapi/c/ppb_audio_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +38 lines, -7 lines 0 comments Download
M ppapi/cpp/audio_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +10 lines, -2 lines 0 comments Download
M ppapi/cpp/audio_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +13 lines, -2 lines 0 comments Download
M ppapi/examples/audio/audio.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/examples/audio_input/audio_input.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +71 lines, -18 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_audio_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +5 lines, -3 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_audio_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +51 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_audio_config.srpc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +19 lines, -3 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +39 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +33 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +12 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +10 lines, -0 lines 0 comments Download
M ppapi/native_client/tests/ppapi_example_audio/audio.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +10 lines, -11 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +8 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +39 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_config_shared.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_config_shared.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +71 lines, -0 lines 0 comments Download
M ppapi/tests/test_audio.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +4 lines, -4 lines 0 comments Download
M ppapi/tests/test_audio_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_stable.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/ppb_audio_config_thunk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +40 lines, -12 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +8 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
dmichael (off chromium)
You'll probably also want to modify the SDK example (src/native_client_sdk/src/examples) http://codereview.chromium.org/9129007/diff/4002/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/9129007/diff/4002/content/renderer/pepper_plugin_delegate_impl.cc#newcode235 ...
8 years, 11 months ago (2012-01-24 16:54:37 UTC) #1
nfullagar
http://codereview.chromium.org/9129007/diff/4002/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/9129007/diff/4002/content/renderer/pepper_plugin_delegate_impl.cc#newcode235 content/renderer/pepper_plugin_delegate_impl.cc:235: uint32_t sample_rate, uint32_t sample_count, I did try a couple ...
8 years, 11 months ago (2012-01-24 19:14:58 UTC) #2
nfullagar
8 years, 10 months ago (2012-02-09 23:07:16 UTC) #3
brettw
https://chromiumcodereview.appspot.com/9129007/diff/46010/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc File ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc (right): https://chromiumcodereview.appspot.com/9129007/diff/46010/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc#newcode17 ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc:17: static const PPB_AudioConfig_1_0* audioConfig = style: audioConfig -> audio_config ...
8 years, 10 months ago (2012-02-10 19:01:33 UTC) #4
nfullagar
new upload, ptal thx. https://chromiumcodereview.appspot.com/9129007/diff/46010/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc File ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc (right): https://chromiumcodereview.appspot.com/9129007/diff/46010/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc#newcode17 ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc:17: static const PPB_AudioConfig_1_0* audioConfig = ...
8 years, 10 months ago (2012-02-14 00:42:37 UTC) #5
dmichael (off chromium)
LGTM, but you might want to wait for brettw to look again. http://codereview.chromium.org/9129007/diff/59001/ppapi/shared_impl/ppb_audio_config_shared.cc File ppapi/shared_impl/ppb_audio_config_shared.cc ...
8 years, 10 months ago (2012-02-14 17:19:24 UTC) #6
dmichael (off chromium)
On 2012/02/14 17:19:24, dmichael wrote: > LGTM, but you might want to wait for brettw ...
8 years, 10 months ago (2012-02-14 17:20:11 UTC) #7
brettw
LGTM https://chromiumcodereview.appspot.com/9129007/diff/59001/ppapi/shared_impl/ppb_audio_config_shared.cc File ppapi/shared_impl/ppb_audio_config_shared.cc (right): https://chromiumcodereview.appspot.com/9129007/diff/59001/ppapi/shared_impl/ppb_audio_config_shared.cc#newcode73 ppapi/shared_impl/ppb_audio_config_shared.cc:73: // Get the hardware config. Can you put ...
8 years, 10 months ago (2012-02-14 18:50:18 UTC) #8
nfullagar
thx, on its way to the trybots https://chromiumcodereview.appspot.com/9129007/diff/59001/ppapi/shared_impl/ppb_audio_config_shared.cc File ppapi/shared_impl/ppb_audio_config_shared.cc (right): https://chromiumcodereview.appspot.com/9129007/diff/59001/ppapi/shared_impl/ppb_audio_config_shared.cc#newcode73 ppapi/shared_impl/ppb_audio_config_shared.cc:73: // Get ...
8 years, 10 months ago (2012-02-14 23:21:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nfullagar@google.com/9129007/77002
8 years, 10 months ago (2012-02-16 22:11:14 UTC) #10
commit-bot: I haz the power
Can't apply patch for file ppapi/c/ppb_audio_config.h. While running patch -p0 --forward --force; patching file ppapi/c/ppb_audio_config.h ...
8 years, 10 months ago (2012-02-16 22:11:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nfullagar@google.com/9129007/74005
8 years, 10 months ago (2012-02-17 01:28:34 UTC) #12
commit-bot: I haz the power
Presubmit check for 9129007-74005 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-17 01:28:54 UTC) #13
nfullagar
manually committed - Committed revision 122653.
8 years, 10 months ago (2012-02-18 01:11:35 UTC) #14
viettrungluu
I filed http://crbug.com/115305 . http://codereview.chromium.org/9129007/diff/66012/ppapi/api/ppb_audio_config.idl File ppapi/api/ppb_audio_config.idl (right): http://codereview.chromium.org/9129007/diff/66012/ppapi/api/ppb_audio_config.idl#newcode13 ppapi/api/ppb_audio_config.idl:13: M18 = 1.1 This is ...
8 years, 10 months ago (2012-02-22 19:17:12 UTC) #15
nfullagar
8 years, 10 months ago (2012-02-22 19:35:32 UTC) #16
good catch, CL was started for m18 but didn't make the cutoff.  Sending out
the fix shortly.

On Wed, Feb 22, 2012 at 11:17 AM, <viettrungluu@chromium.org> wrote:

> I filed http://crbug.com/115305 .
>
>
> http://codereview.chromium.**org/9129007/diff/66012/ppapi/**
>
api/ppb_audio_config.idl<http://codereview.chromium.org/9129007/diff/66012/ppapi/api/ppb_audio_config.idl>
> File ppapi/api/ppb_audio_config.idl (right):
>
> http://codereview.chromium.**org/9129007/diff/66012/ppapi/**
>
api/ppb_audio_config.idl#**newcode13<http://codereview.chromium.org/9129007/diff/66012/ppapi/api/ppb_audio_config.idl#newcode13>
> ppapi/api/ppb_audio_config.**idl:13: M18 = 1.1
> This is wrong, unless you merged it into M18 (which seems unlikely).
>
>
http://codereview.chromium.**org/9129007/<http://codereview.chromium.org/9129...
>

Powered by Google App Engine
This is Rietveld 408576698