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

Issue 2469743002: Passed AudioMixer to AudioState::Config. (Closed)

Created:
4 years, 1 month ago by aleloi
Modified:
4 years ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, hlundin-webrtc, the sun, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Passed AudioMixer to AudioState::Config. This is a refactoring change in preparation for enabling AudioMixer with the goal to have a small CL as possible for passing audio through the new audio mixer in WebRTC. The dependent CL https://codereview.webrtc.org/2436033002/ enables the mixer. An object of class AudioState is shared across different webrtc audio connections. It is created in tests and in WebRTCVoiceEngine. AudioState is constructed by passing a Config struct, where one argument is scoped_refptr<AudioMixer>. Populating this field has now been mandatory. Tests and WebRTCVoiceEngine create and pass either a AudioMixerImpl. WebRTCVoiceEngine passes a real AudioMixer, which is currently unused. An alternative would have tests pass a mocked audio mixer. We chose not to do that, because we believe that tests should use the real thing unless there are reasons against it. Construction time is not an issue, because the real mixer is relatively lightweight. We couldn't find a way to test any mixer-related changes in AudioState before the mixes is connected. The next dependent CL https://codereview.webrtc.org/2436033002/ contains unit tests for mixer usage. BUG=webrtc:6346 Committed: https://crrev.com/10111bc49539589113c76318b7ba53591946e78a Cr-Commit-Position: refs/heads/master@{#15134}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Thread checker and related fields inited close together #

Patch Set 3 : Rebase. GYP removed! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -5 lines) Patch
M webrtc/audio/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/audio/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/audio/audio_receive_stream_unittest.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/audio/audio_state.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/audio/audio_state_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/call/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/call/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/call/call_perf_tests.cc View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/call/call_unittest.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/media/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/media/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_mixer/BUILD.gn View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/test/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M webrtc/video/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 50 (43 generated)
aleloi
Hi! Can you take a look? It's a refactoring CL full of 2-line changes in ...
4 years, 1 month ago (2016-11-14 16:39:59 UTC) #36
the sun
https://codereview.webrtc.org/2469743002/diff/160001/webrtc/audio/audio_state.cc File webrtc/audio/audio_state.cc (right): https://codereview.webrtc.org/2469743002/diff/160001/webrtc/audio/audio_state.cc#newcode52 webrtc/audio/audio_state.cc:52: rtc::scoped_refptr<AudioMixer> AudioState::mixer() { Missing RTC_DCHECK(thread_checker_.CalledOnValidThread()); https://codereview.webrtc.org/2469743002/diff/160001/webrtc/call/call_unittest.cc File webrtc/call/call_unittest.cc (right): ...
4 years, 1 month ago (2016-11-14 20:14:22 UTC) #38
kwiberg-webrtc
lgtm, if you fix the things solenberg pointed out
4 years, 1 month ago (2016-11-15 04:58:16 UTC) #40
kwiberg-webrtc
By the way, please change the title a bit. With "AudioMixer*", it sounds like you're ...
4 years, 1 month ago (2016-11-15 05:01:09 UTC) #41
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/2469743002/200001
4 years, 1 month ago (2016-11-17 14:31:46 UTC) #46
commit-bot: I haz the power
Committed patchset #3 (id:200001)
4 years, 1 month ago (2016-11-17 14:48:51 UTC) #48
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 14:49:01 UTC) #50
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/10111bc49539589113c76318b7ba53591946e78a
Cr-Commit-Position: refs/heads/master@{#15134}

Powered by Google App Engine
This is Rietveld 408576698