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

Issue 1483433003: Second layer of mixing for audio elements. (Closed)

Created:
5 years ago by o1ka
Modified:
4 years, 8 months ago
Reviewers:
*Henrik Grunell, *DaleCurtis, miu
CC:
vanellope-cl_google.com, chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_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

Second layer of mixing for audio elements. Now each mixer will accept all the inputs with the same (renderer frame, channel layout, device id, security origin), regardless input sample rate, and will produce the output at native sample rate (on all the systems except CrOS and Android). BUG=557789 Committed: https://crrev.com/f1688cc20b1ebc03b23e26ac5ea2fb6b84f70ea6 Cr-Commit-Position: refs/heads/master@{#363434}

Patch Set 1 #

Patch Set 2 : fixing merge issue #

Patch Set 3 : GN build fix #

Total comments: 42

Patch Set 4 : Review comments implementation. #

Total comments: 1

Patch Set 5 : some more nits fixed #

Total comments: 42

Patch Set 6 : more review comment implementation #

Patch Set 7 : Fixing similarity #

Patch Set 8 : similarity 20% #

Patch Set 9 : Similarity back to 10% #

Total comments: 2

Patch Set 10 : Nit fixes #

Total comments: 1

Patch Set 11 : That fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -297 lines) Patch
M content/renderer/media/audio_renderer_mixer_manager.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager_unittest.cc View 1 2 3 3 chunks +14 lines, -8 lines 0 comments Download
M media/audio/virtual_audio_input_stream.cc View 2 chunks +3 lines, -36 lines 0 comments Download
M media/base/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/audio_renderer_mixer.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +25 lines, -6 lines 0 comments Download
M media/base/audio_renderer_mixer.cc View 1 2 3 4 5 4 chunks +47 lines, -8 lines 0 comments Download
M media/base/audio_renderer_mixer_input.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M media/base/audio_renderer_mixer_input_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/base/audio_renderer_mixer_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +113 lines, -58 lines 0 comments Download
A + media/base/loopback_audio_converter.h View 1 2 3 4 5 6 8 3 chunks +12 lines, -151 lines 0 comments Download
A + media/base/loopback_audio_converter.cc View 1 2 3 4 5 6 1 chunk +11 lines, -22 lines 0 comments Download
M media/media.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
o1ka
Could you take a look at mixer changes? Thanks! Olga
5 years ago (2015-11-30 09:44:13 UTC) #4
Henrik Grunell
Looks good. Only code style and such comments. I defer mixer unit test reviewing to ...
5 years ago (2015-11-30 14:45:03 UTC) #5
o1ka
Thank you, Henrik! I added a couple of questions, could you take a look? Thanks, ...
5 years ago (2015-11-30 15:20:15 UTC) #6
Henrik Grunell
https://codereview.chromium.org/1483433003/diff/40001/content/renderer/media/audio_renderer_mixer_manager.cc File content/renderer/media/audio_renderer_mixer_manager.cc (right): https://codereview.chromium.org/1483433003/diff/40001/content/renderer/media/audio_renderer_mixer_manager.cc#newcode97 content/renderer/media/audio_renderer_mixer_manager.cc:97: // TODO(olka): when mixing in other audio choose latency ...
5 years ago (2015-11-30 15:37:41 UTC) #7
DaleCurtis
Seems like this will add a couple layers of indirection for CrOS and Android as ...
5 years ago (2015-11-30 19:09:25 UTC) #8
o1ka
It adds one layer of indirection in case resampling is required (i.e. input sample rate ...
5 years ago (2015-12-01 12:56:26 UTC) #9
o1ka
Comments are implemented! https://codereview.chromium.org/1483433003/diff/40001/content/renderer/media/audio_renderer_mixer_manager.cc File content/renderer/media/audio_renderer_mixer_manager.cc (right): https://codereview.chromium.org/1483433003/diff/40001/content/renderer/media/audio_renderer_mixer_manager.cc#newcode97 content/renderer/media/audio_renderer_mixer_manager.cc:97: // TODO(olka): when mixing in other ...
5 years ago (2015-12-01 13:17:51 UTC) #10
Henrik Grunell
You also hadn't changed one of the licence headers. But since we decided to keep ...
5 years ago (2015-12-01 13:44:50 UTC) #11
o1ka
On 2015/12/01 13:44:50, Henrik Grunell wrote: > You also hadn't changed one of the licence ...
5 years ago (2015-12-01 13:57:19 UTC) #12
DaleCurtis
lgtm generally, defer to grunell@ for the fine details. I think the power should be ...
5 years ago (2015-12-01 18:24:06 UTC) #13
Henrik Grunell
https://codereview.chromium.org/1483433003/diff/80001/content/renderer/media/audio_renderer_mixer_manager.cc File content/renderer/media/audio_renderer_mixer_manager.cc (right): https://codereview.chromium.org/1483433003/diff/80001/content/renderer/media/audio_renderer_mixer_manager.cc#newcode97 content/renderer/media/audio_renderer_mixer_manager.cc:97: // TODO(olka): Make sure low latency buffer is not ...
5 years ago (2015-12-02 13:22:38 UTC) #14
o1ka
Some more fixes, couple of open questions left. https://codereview.chromium.org/1483433003/diff/80001/content/renderer/media/audio_renderer_mixer_manager.cc File content/renderer/media/audio_renderer_mixer_manager.cc (right): https://codereview.chromium.org/1483433003/diff/80001/content/renderer/media/audio_renderer_mixer_manager.cc#newcode97 content/renderer/media/audio_renderer_mixer_manager.cc:97: // ...
5 years ago (2015-12-02 19:05:41 UTC) #15
miu
virtual_audio_input_stream.cc and loopback* lgtm. However, please upload again with a lower similarity setting (10% might ...
5 years ago (2015-12-02 19:32:28 UTC) #17
o1ka
On 2015/12/02 19:32:28, miu wrote: > virtual_audio_input_stream.cc and loopback* lgtm. > > However, please upload ...
5 years ago (2015-12-03 08:13:44 UTC) #18
Henrik Grunell
https://codereview.chromium.org/1483433003/diff/80001/content/renderer/media/audio_renderer_mixer_manager.cc File content/renderer/media/audio_renderer_mixer_manager.cc (right): https://codereview.chromium.org/1483433003/diff/80001/content/renderer/media/audio_renderer_mixer_manager.cc#newcode97 content/renderer/media/audio_renderer_mixer_manager.cc:97: // TODO(olka): Make sure low latency buffer is not ...
5 years ago (2015-12-04 10:11:56 UTC) #19
Henrik Grunell
lgtm with nit fixed. https://codereview.chromium.org/1483433003/diff/180001/media/base/audio_renderer_mixer.h File media/base/audio_renderer_mixer.h (right): https://codereview.chromium.org/1483433003/diff/180001/media/base/audio_renderer_mixer.h#newcode83 media/base/audio_renderer_mixer.h:83: // mixer inputs those are ...
5 years ago (2015-12-04 13:18:32 UTC) #20
o1ka
https://codereview.chromium.org/1483433003/diff/80001/content/renderer/media/audio_renderer_mixer_manager.cc File content/renderer/media/audio_renderer_mixer_manager.cc (right): https://codereview.chromium.org/1483433003/diff/80001/content/renderer/media/audio_renderer_mixer_manager.cc#newcode97 content/renderer/media/audio_renderer_mixer_manager.cc:97: // TODO(olka): Make sure low latency buffer is not ...
5 years ago (2015-12-04 15:29:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1483433003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1483433003/200001
5 years ago (2015-12-07 08:42:33 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years ago (2015-12-07 09:45:35 UTC) #26
commit-bot: I haz the power
5 years ago (2015-12-07 09:46:30 UTC) #28
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f1688cc20b1ebc03b23e26ac5ea2fb6b84f70ea6
Cr-Commit-Position: refs/heads/master@{#363434}

Powered by Google App Engine
This is Rietveld 408576698