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

Issue 1293503002: Check buffer index in shared memory for input audio. (Closed)

Created:
5 years, 4 months ago by Henrik Grunell
Modified:
5 years, 4 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check buffer sequence and ring buffer index in shared memory at browser/renderer boundary for input audio. Also moves sending hardware delay over socket to store it in buffer meta data. BUG=517871, 519336 Committed: https://crrev.com/bca680e362046b84a5742e0b7239104714141dc1 Cr-Commit-Position: refs/heads/master@{#344537}

Patch Set 1 #

Patch Set 2 : Use id. #

Patch Set 3 : Cleanup. #

Total comments: 13

Patch Set 4 : Code review #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 : Refresh #

Patch Set 7 : Cleanup. #

Patch Set 8 : Rebase #

Patch Set 9 : Fix compile error on Windows. #

Patch Set 10 : Now the Win compile error should really be fixed. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -26 lines) Patch
M content/browser/renderer_host/media/audio_input_sync_writer.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_sync_writer.cc View 1 2 3 4 5 6 4 chunks +10 lines, -7 lines 0 comments Download
M media/audio/audio_input_controller.h View 1 chunk +2 lines, -5 lines 0 comments Download
M media/audio/audio_input_controller.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/audio_input_device.cc View 1 2 3 3 chunks +15 lines, -6 lines 0 comments Download
M media/audio/audio_parameters.h View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -4 lines 2 comments Download

Messages

Total messages: 28 (9 generated)
Henrik Grunell
Another shot at verifying sequence of audio input buffers over b/r boundary.
5 years, 4 months ago (2015-08-13 15:17:41 UTC) #2
DaleCurtis
lgtm % some nits. https://codereview.chromium.org/1293503002/diff/40001/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc (right): https://codereview.chromium.org/1293503002/diff/40001/content/browser/renderer_host/media/audio_input_sync_writer.cc#newcode90 content/browser/renderer_host/media/audio_input_sync_writer.cc:90: next_buffer_id_ = 0; Rollover is ...
5 years, 4 months ago (2015-08-13 22:00:49 UTC) #3
tommi (sloooow) - chröme
https://codereview.chromium.org/1293503002/diff/40001/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc (right): https://codereview.chromium.org/1293503002/diff/40001/content/browser/renderer_host/media/audio_input_sync_writer.cc#newcode87 content/browser/renderer_host/media/audio_input_sync_writer.cc:87: buffer->params.id = next_buffer_id_; Can we have a thread check ...
5 years, 4 months ago (2015-08-14 09:56:21 UTC) #4
Henrik Grunell
https://codereview.chromium.org/1293503002/diff/40001/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc (right): https://codereview.chromium.org/1293503002/diff/40001/content/browser/renderer_host/media/audio_input_sync_writer.cc#newcode87 content/browser/renderer_host/media/audio_input_sync_writer.cc:87: buffer->params.id = next_buffer_id_; On 2015/08/14 09:56:21, tommi wrote: > ...
5 years, 4 months ago (2015-08-14 12:38:32 UTC) #5
Henrik Grunell
Ping for review.
5 years, 4 months ago (2015-08-18 08:15:42 UTC) #6
tommi (sloooow) - chröme
https://codereview.chromium.org/1293503002/diff/80001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://codereview.chromium.org/1293503002/diff/80001/media/audio/audio_parameters.h#newcode31 media/audio/audio_parameters.h:31: AudioInputBufferParameters_not_aligned); I think we should apply the alignas attribute ...
5 years, 4 months ago (2015-08-18 12:44:37 UTC) #7
Henrik Grunell
ptal https://codereview.chromium.org/1293503002/diff/80001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://codereview.chromium.org/1293503002/diff/80001/media/audio/audio_parameters.h#newcode31 media/audio/audio_parameters.h:31: AudioInputBufferParameters_not_aligned); On 2015/08/18 12:44:37, tommi wrote: > I ...
5 years, 4 months ago (2015-08-19 14:28:38 UTC) #8
tommi (sloooow) - chröme
lgtm
5 years, 4 months ago (2015-08-19 14:45:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1293503002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293503002/140001
5 years, 4 months ago (2015-08-19 18:58:13 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/30153)
5 years, 4 months ago (2015-08-19 19:51:42 UTC) #14
Henrik Grunell
Fixed Win compile error, I hope.
5 years, 4 months ago (2015-08-20 09:38:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1293503002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293503002/160001
5 years, 4 months ago (2015-08-20 09:38:48 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/93093)
5 years, 4 months ago (2015-08-20 10:13:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1293503002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293503002/180001
5 years, 4 months ago (2015-08-20 13:43:04 UTC) #23
Henrik Grunell
Now really fixed the compile error on Win. (Patch set 10.)
5 years, 4 months ago (2015-08-20 14:13:48 UTC) #24
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/1293503002/diff/180001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://codereview.chromium.org/1293503002/diff/180001/media/audio/audio_parameters.h#newcode28 media/audio/audio_parameters.h:28: struct MEDIA_EXPORT ALIGNAS(16) AudioInputBufferParameters { maybe add a ...
5 years, 4 months ago (2015-08-20 14:59:58 UTC) #25
Henrik Grunell
https://codereview.chromium.org/1293503002/diff/180001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://codereview.chromium.org/1293503002/diff/180001/media/audio/audio_parameters.h#newcode28 media/audio/audio_parameters.h:28: struct MEDIA_EXPORT ALIGNAS(16) AudioInputBufferParameters { On 2015/08/20 14:59:58, tommi ...
5 years, 4 months ago (2015-08-20 16:59:37 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 4 months ago (2015-08-20 18:05:20 UTC) #27
commit-bot: I haz the power
5 years, 4 months ago (2015-08-20 18:06:28 UTC) #28
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/bca680e362046b84a5742e0b7239104714141dc1
Cr-Commit-Position: refs/heads/master@{#344537}

Powered by Google App Engine
This is Rietveld 408576698