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

Issue 2411313003: Split audio mixer into interface and implementation. (Closed)

Created:
4 years, 2 months ago by aleloi
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), hlundin-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Split audio mixer into interface and implementation. The AudioMixer is now split in a mixer and audio source interface part, which has moved to webrtc/api, and a default implementation part, which lies in webrtc/modules. This change makes it possible to create other mixer implementations and is a first step to facilitate passing down a mixer from outside of WebRTC. It will also create less build dependencies when the new mixer has replaced the old one. NOTRY=True TBR=henrik.lundin@webrtc.org BUG=webrtc:6346 Committed: https://crrev.com/201dfe90a7b77eb97d940331ba367e2927e910c2 Cr-Commit-Position: refs/heads/master@{#14705}

Patch Set 1 : visibility #

Total comments: 14

Patch Set 2 : Reorder includes. #

Total comments: 5

Patch Set 3 : Created an 'audio_frame_manipulator' target. #

Total comments: 3

Patch Set 4 : Changed visibility of audio_frame_manipulator. #

Total comments: 1

Patch Set 5 : Rebase. #

Total comments: 11

Patch Set 6 : Comments, spelling and capitalization of virtual methods. #

Total comments: 2

Patch Set 7 : Capitalize Ssrc #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -113 lines) Patch
M .gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/BUILD.gn View 1 chunk +11 lines, -0 lines 0 comments Download
M webrtc/api/api.gyp View 1 chunk +11 lines, -0 lines 0 comments Download
A + webrtc/api/audio/audio_mixer.h View 1 2 3 4 5 6 5 chunks +13 lines, -9 lines 6 comments Download
M webrtc/modules/BUILD.gn View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_mixer/BUILD.gn View 1 2 3 2 chunks +27 lines, -11 lines 0 comments Download
M webrtc/modules/audio_mixer/audio_frame_manipulator.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_mixer/audio_frame_manipulator.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D webrtc/modules/audio_mixer/audio_mixer.h View 1 chunk +0 lines, -78 lines 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer.gypi View 1 2 1 chunk +16 lines, -6 lines 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer_impl.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer_impl_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_mixer/audio_source_with_mix_status.h View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (17 generated)
aleloi
Hi! Could you please take a look at this? In this CL, the audio mixer ...
4 years, 2 months ago (2016-10-12 15:11:33 UTC) #4
the sun
https://codereview.webrtc.org/2411313003/diff/40001/webrtc/api/BUILD.gn File webrtc/api/BUILD.gn (right): https://codereview.webrtc.org/2411313003/diff/40001/webrtc/api/BUILD.gn#newcode322 webrtc/api/BUILD.gn:322: "audio/audio_mixer.h", The mixer has a dependency on AudioFrame, which ...
4 years, 2 months ago (2016-10-12 15:26:10 UTC) #7
aleloi
Replies to comments and questions. https://codereview.webrtc.org/2411313003/diff/40001/webrtc/api/BUILD.gn File webrtc/api/BUILD.gn (right): https://codereview.webrtc.org/2411313003/diff/40001/webrtc/api/BUILD.gn#newcode322 webrtc/api/BUILD.gn:322: "audio/audio_mixer.h", On 2016/10/12 15:26:10, ...
4 years, 2 months ago (2016-10-12 15:36:02 UTC) #8
kjellander_webrtc
lgtm with nits addressed. https://codereview.webrtc.org/2411313003/diff/60001/webrtc/modules/audio_mixer/BUILD.gn File webrtc/modules/audio_mixer/BUILD.gn (right): https://codereview.webrtc.org/2411313003/diff/60001/webrtc/modules/audio_mixer/BUILD.gn#newcode12 webrtc/modules/audio_mixer/BUILD.gn:12: visibility = [ Nice to ...
4 years, 2 months ago (2016-10-13 00:57:47 UTC) #9
the sun
lgtm https://codereview.webrtc.org/2411313003/diff/40001/webrtc/api/BUILD.gn File webrtc/api/BUILD.gn (right): https://codereview.webrtc.org/2411313003/diff/40001/webrtc/api/BUILD.gn#newcode322 webrtc/api/BUILD.gn:322: "audio/audio_mixer.h", On 2016/10/12 15:36:02, aleloi wrote: > On ...
4 years, 2 months ago (2016-10-13 07:55:01 UTC) #10
aleloi
https://codereview.webrtc.org/2411313003/diff/40001/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2411313003/diff/40001/webrtc/api/audio/audio_mixer.h#newcode17 webrtc/api/audio/audio_mixer.h:17: #include "webrtc/modules/include/module_common_types.h" On 2016/10/13 07:55:00, the sun wrote: > ...
4 years, 2 months ago (2016-10-13 08:40:02 UTC) #11
aleloi
I did run GN's include header checker on modules:modules_unittests and found a few errors in ...
4 years, 2 months ago (2016-10-13 09:25:23 UTC) #12
aleloi
kwiberg@, can you take a look at this as an owner of webrtc/api?
4 years, 2 months ago (2016-10-13 09:26:51 UTC) #14
aleloi
https://codereview.webrtc.org/2411313003/diff/100001/webrtc/modules/audio_mixer/BUILD.gn File webrtc/modules/audio_mixer/BUILD.gn (right): https://codereview.webrtc.org/2411313003/diff/100001/webrtc/modules/audio_mixer/BUILD.gn#newcode44 webrtc/modules/audio_mixer/BUILD.gn:44: "../../modules:*", On other platforms, the unittests are named differently: ...
4 years, 2 months ago (2016-10-13 13:03:14 UTC) #15
kwiberg-webrtc
webrtc/api looks good, but a few nits and a potentially bothersome suggestion. https://codereview.webrtc.org/2411313003/diff/140001/.gn File .gn ...
4 years, 2 months ago (2016-10-14 07:52:22 UTC) #16
the sun
I recommend a separate CL for Karl's suggested interface changes. https://codereview.webrtc.org/2411313003/diff/140001/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2411313003/diff/140001/webrtc/api/audio/audio_mixer.h#newcode48 ...
4 years, 2 months ago (2016-10-14 08:41:04 UTC) #17
aleloi
https://codereview.webrtc.org/2411313003/diff/140001/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2411313003/diff/140001/webrtc/api/audio/audio_mixer.h#newcode31 webrtc/api/audio/audio_mixer.h:31: kError // audio_frame will not be used. On 2016/10/14 ...
4 years, 2 months ago (2016-10-14 09:50:33 UTC) #18
the sun
https://codereview.webrtc.org/2411313003/diff/160001/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2411313003/diff/160001/webrtc/api/audio/audio_mixer.h#newcode21 webrtc/api/audio/audio_mixer.h:21: class AudioMixer : public rtc::RefCountInterface { Add this comment ...
4 years, 2 months ago (2016-10-14 11:35:07 UTC) #19
aleloi
https://codereview.webrtc.org/2411313003/diff/160001/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2411313003/diff/160001/webrtc/api/audio/audio_mixer.h#newcode21 webrtc/api/audio/audio_mixer.h:21: class AudioMixer : public rtc::RefCountInterface { On 2016/10/14 11:35:07, ...
4 years, 2 months ago (2016-10-14 16:34:03 UTC) #20
aleloi
Ping :) kwiberg@s suggestion to simplify the interface by not borrowing frames from audio sources ...
4 years, 2 months ago (2016-10-20 08:45:41 UTC) #24
the sun
still lgtm https://codereview.webrtc.org/2411313003/diff/200001/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2411313003/diff/200001/webrtc/api/audio/audio_mixer.h#newcode14 webrtc/api/audio/audio_mixer.h:14: #include <memory> not needed? https://codereview.webrtc.org/2411313003/diff/200001/webrtc/api/audio/audio_mixer.h#newcode75 webrtc/api/audio/audio_mixer.h:75: // ...
4 years, 2 months ago (2016-10-20 09:13:05 UTC) #25
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2411313003/diff/200001/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2411313003/diff/200001/webrtc/api/audio/audio_mixer.h#newcode21 webrtc/api/audio/audio_mixer.h:21: // WORK IN PROGRESS Are we allowed to ...
4 years, 2 months ago (2016-10-20 09:24:12 UTC) #26
aleloi
https://codereview.webrtc.org/2411313003/diff/200001/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2411313003/diff/200001/webrtc/api/audio/audio_mixer.h#newcode14 webrtc/api/audio/audio_mixer.h:14: #include <memory> On 2016/10/20 09:13:05, the sun wrote: > ...
4 years, 2 months ago (2016-10-20 09:35:18 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2411313003/200001
4 years, 2 months ago (2016-10-20 09:37:45 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_drmemory_light on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_drmemory_light/builds/15994)
4 years, 2 months ago (2016-10-20 11:01:44 UTC) #33
kjellander_webrtc
On 2016/10/20 11:01:44, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 2 months ago (2016-10-20 11:15:48 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2411313003/200001
4 years, 2 months ago (2016-10-20 11:22:33 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years, 2 months ago (2016-10-20 12:06:43 UTC) #39
commit-bot: I haz the power
4 years, 2 months ago (2016-10-20 12:36:26 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/201dfe90a7b77eb97d940331ba367e2927e910c2
Cr-Commit-Position: refs/heads/master@{#14705}

Powered by Google App Engine
This is Rietveld 408576698