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

Issue 290993005: Support configuring number of audio buffers in MediaStream Pepper API. (Closed)

Created:
6 years, 7 months ago by thembrown
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Support configuring number of audio buffers in MediaStream Pepper API. A optionally larger number of buffers makes recording audio in a pnacl module more reliable when latency is not an issue. BUG=330851 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274511

Patch Set 1 #

Total comments: 13

Patch Set 2 : Add tests, fixes for peng #

Total comments: 15

Patch Set 3 : Fix review issues #

Total comments: 24

Patch Set 4 : Fix review issues (dmichael) #

Patch Set 5 : Rebased #

Total comments: 12

Patch Set 6 : changed number_of_buffers to int32_t #

Patch Set 7 : Use CheckedNumeric in buffer size calculations #

Total comments: 1

Patch Set 8 : Remove unnecessary buffer_size_aligned check #

Patch Set 9 : Rebased #

Patch Set 10 : fix uninitialized variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -39 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_audio_track_host.h View 1 2 3 4 5 3 chunks +23 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_audio_track_host.cc View 1 2 3 4 5 6 7 8 9 5 chunks +73 lines, -16 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_track_host_base.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -9 lines 0 comments Download
M ppapi/api/ppb_media_stream_audio_track.idl View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/c/ppb_media_stream_audio_track.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/cpp/media_stream_audio_track.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/media_stream_audio_track_resource.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/proxy/media_stream_audio_track_resource.cc View 1 2 3 4 chunks +53 lines, -3 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -0 lines 0 comments Download
A ppapi/shared_impl/media_stream_audio_track_shared.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A ppapi/shared_impl/media_stream_audio_track_shared.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A ppapi/shared_impl/media_stream_audio_track_shared_unittest.cc View 1 1 chunk +33 lines, -0 lines 0 comments Download
M ppapi/tests/test_media_stream_audio_track.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ppapi/tests/test_media_stream_audio_track.cc View 1 2 3 4 chunks +87 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
thembrown
6 years, 7 months ago (2014-05-21 15:38:44 UTC) #1
teravest
-teravest +dmichael to reviewers. I don't follow MediaStream development much; Dave probably knows more of ...
6 years, 7 months ago (2014-05-23 15:56:47 UTC) #2
Peng
https://codereview.chromium.org/290993005/diff/1/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/290993005/diff/1/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode92 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:92: if (changed && bytes_per_second_ > 0) { {} is ...
6 years, 7 months ago (2014-05-26 14:48:48 UTC) #3
thembrown
Added tests + fixes https://codereview.chromium.org/290993005/diff/1/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/290993005/diff/1/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode92 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:92: if (changed && bytes_per_second_ > ...
6 years, 7 months ago (2014-05-27 10:36:01 UTC) #4
Peng
LGTM with several minor comments. https://codereview.chromium.org/290993005/diff/1/ppapi/proxy/media_stream_audio_track_resource.h File ppapi/proxy/media_stream_audio_track_resource.h (right): https://codereview.chromium.org/290993005/diff/1/ppapi/proxy/media_stream_audio_track_resource.h#newcode9 ppapi/proxy/media_stream_audio_track_resource.h:9: #include <string> On 2014/05/27 ...
6 years, 7 months ago (2014-05-27 14:35:49 UTC) #5
thembrown
https://codereview.chromium.org/290993005/diff/20001/ppapi/ppapi_shared.gypi File ppapi/ppapi_shared.gypi (right): https://codereview.chromium.org/290993005/diff/20001/ppapi/ppapi_shared.gypi#newcode48 ppapi/ppapi_shared.gypi:48: 'shared_impl/media_stream_audio_track_shared.cc', On 2014/05/27 14:35:49, Peng wrote: > alphabetical order ...
6 years, 7 months ago (2014-05-27 17:11:23 UTC) #6
dmichael (off chromium)
https://codereview.chromium.org/290993005/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/290993005/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode32 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:32: const int32_t kMaxNumberOfBuffers = 1000; // 10 sec I'm ...
6 years, 7 months ago (2014-05-27 20:22:33 UTC) #7
thembrown
https://codereview.chromium.org/290993005/diff/20001/ppapi/shared_impl/media_stream_audio_track_shared.h File ppapi/shared_impl/media_stream_audio_track_shared.h (right): https://codereview.chromium.org/290993005/diff/20001/ppapi/shared_impl/media_stream_audio_track_shared.h#newcode8 ppapi/shared_impl/media_stream_audio_track_shared.h:8: #include "ppapi/c/ppb_audio_buffer.h" On 2014/05/27 17:11:23, thembrown wrote: > On ...
6 years, 6 months ago (2014-05-28 10:55:58 UTC) #8
dmichael (off chromium)
lgtm, thanks for doing this! https://codereview.chromium.org/290993005/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/290993005/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode32 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:32: const int32_t kMaxNumberOfBuffers = ...
6 years, 6 months ago (2014-05-28 15:27:43 UTC) #9
dcheng
https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode110 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:110: static_cast<int32_t>(buffer_size), Will we need to be concerned about overflow ...
6 years, 6 months ago (2014-05-28 15:55:43 UTC) #10
thembrown
https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode110 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:110: static_cast<int32_t>(buffer_size), On 2014/05/28 15:55:44, dcheng wrote: > Will we ...
6 years, 6 months ago (2014-05-28 17:13:10 UTC) #11
dcheng
https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode110 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:110: static_cast<int32_t>(buffer_size), On 2014/05/28 17:13:11, thembrown wrote: > On 2014/05/28 ...
6 years, 6 months ago (2014-05-28 17:21:06 UTC) #12
thembrown
https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode110 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:110: static_cast<int32_t>(buffer_size), On 2014/05/28 17:21:06, dcheng wrote: > On 2014/05/28 ...
6 years, 6 months ago (2014-05-28 19:09:53 UTC) #13
dcheng
On 2014/05/28 19:09:53, thembrown wrote: > https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc > File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): > > https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode110 > ...
6 years, 6 months ago (2014-05-29 16:12:25 UTC) #14
dcheng
On 2014/05/29 16:12:25, dcheng wrote: > On 2014/05/28 19:09:53, thembrown wrote: > > > https://codereview.chromium.org/290993005/diff/100001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc ...
6 years, 6 months ago (2014-05-29 16:13:32 UTC) #15
thembrown
[...] > > Well, the safest thing to do here would be to use CheckedNumeric ...
6 years, 6 months ago (2014-06-02 10:44:34 UTC) #16
thembrown
6 years, 6 months ago (2014-06-02 10:44:50 UTC) #17
dcheng
https://codereview.chromium.org/290993005/diff/140001/content/renderer/pepper/pepper_media_stream_track_host_base.cc File content/renderer/pepper/pepper_media_stream_track_host_base.cc (right): https://codereview.chromium.org/290993005/diff/140001/content/renderer/pepper/pepper_media_stream_track_host_base.cc#newcode46 content/renderer/pepper/pepper_media_stream_track_host_base.cc:46: if (!buffer_size_aligned.IsValid() || !size.IsValid()) Nit: you only need to ...
6 years, 6 months ago (2014-06-02 21:57:23 UTC) #18
dcheng
(LGTM with nits)
6 years, 6 months ago (2014-06-02 21:58:06 UTC) #19
thembrown
The CQ bit was checked by thembrown@gmail.com
6 years, 6 months ago (2014-06-03 07:07:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thembrown@gmail.com/290993005/160001
6 years, 6 months ago (2014-06-03 07:09:05 UTC) #21
thembrown
The CQ bit was checked by thembrown@gmail.com
6 years, 6 months ago (2014-06-03 07:30:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thembrown@gmail.com/290993005/180001
6 years, 6 months ago (2014-06-03 07:31:44 UTC) #23
thembrown
The CQ bit was checked by thembrown@gmail.com
6 years, 6 months ago (2014-06-03 08:36:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thembrown@gmail.com/290993005/200001
6 years, 6 months ago (2014-06-03 08:36:45 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 11:44:45 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-03 11:50:29 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/157609) ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/147133)
6 years, 6 months ago (2014-06-03 11:50:30 UTC) #28
thembrown
The CQ bit was checked by thembrown@gmail.com
6 years, 6 months ago (2014-06-03 11:56:02 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thembrown@gmail.com/290993005/200001
6 years, 6 months ago (2014-06-03 11:57:48 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_rel_device on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 12:19:59 UTC) #31
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 13:36:45 UTC) #32
Message was sent while issue was closed.
Change committed as 274511

Powered by Google App Engine
This is Rietveld 408576698