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

Issue 2206223002: Removed calls to VoE::SetPlayout() from WebRTCVoiceEngine. (Closed)

Created:
4 years, 4 months ago by aleloi
Modified:
4 years, 4 months ago
Reviewers:
the sun
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, tlegrand-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Removed calls to VoE::SetPlayout() from WebRTCVoiceEngine. This is part of rewriting the ConferenceMixer and OutputMixer. Calls are instead routed through AudioReceiveStream::Start/Stop. NOTRY=True Committed: https://crrev.com/84ef615a5da13ffd3d8ac150485afa94ca3343c9 Cr-Commit-Position: refs/heads/master@{#13636}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removed playout error unittest. #

Total comments: 12

Patch Set 3 : Removed start/stop playout status code and related tests. #

Total comments: 3

Patch Set 4 : Added most tests back. Changed fake VoE. #

Total comments: 13

Patch Set 5 : Removed unneeded vars from fake channel. Minor changes. #

Total comments: 4

Patch Set 6 : Updated comments in test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -119 lines) Patch
M webrtc/audio/audio_receive_stream.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/media/base/fakemediaengine.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtccall.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/media/engine/fakewebrtcvoiceengine.h View 1 2 3 4 6 chunks +2 lines, -26 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.h View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 6 chunks +20 lines, -35 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 3 4 5 5 chunks +22 lines, -46 lines 0 comments Download

Messages

Total messages: 32 (15 generated)
aleloi
PTAL :) https://codereview.webrtc.org/2206223002/diff/1/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2206223002/diff/1/webrtc/audio/audio_receive_stream.cc#newcode161 webrtc/audio/audio_receive_stream.cc:161: } Similar to AudioSendStream::Start/Stop https://codereview.webrtc.org/2206223002/diff/1/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc ...
4 years, 4 months ago (2016-08-03 13:09:58 UTC) #4
aleloi
Oops, that a real bug. Investigating!
4 years, 4 months ago (2016-08-03 13:21:06 UTC) #7
aleloi
https://codereview.webrtc.org/2206223002/diff/20001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (left): https://codereview.webrtc.org/2206223002/diff/20001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#oldcode2755 webrtc/media/engine/webrtcvoiceengine_unittest.cc:2755: This test sets up a channel for which VoE::StartPlayout(channel_id) ...
4 years, 4 months ago (2016-08-03 13:38:39 UTC) #8
aleloi
Suppose the return value from VoE::StartPlayout/StopPlayout doesn't end up here. Then I think we should ...
4 years, 4 months ago (2016-08-03 13:44:16 UTC) #11
the sun
https://codereview.webrtc.org/2206223002/diff/20001/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2206223002/diff/20001/webrtc/audio/audio_receive_stream.cc#newcode169 webrtc/audio/audio_receive_stream.cc:169: LOG(LS_ERROR) << "AudioReceiveStream::Start failed with error: " << error; ...
4 years, 4 months ago (2016-08-03 14:50:56 UTC) #14
aleloi
https://codereview.webrtc.org/2206223002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (left): https://codereview.webrtc.org/2206223002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc#oldcode2627 webrtc/media/engine/webrtcvoiceengine.cc:2627: engine()->voe()->base()->StopPlayout(channel); On 2016/08/03 14:50:56, the sun wrote: > Note ...
4 years, 4 months ago (2016-08-04 09:08:31 UTC) #15
the sun
https://codereview.webrtc.org/2206223002/diff/40001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (left): https://codereview.webrtc.org/2206223002/diff/40001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#oldcode778 webrtc/media/engine/webrtcvoiceengine_unittest.cc:778: EXPECT_TRUE(voe_.GetPlayout(channel_num)); On 2016/08/04 09:08:31, aleloi wrote: > voe_ is ...
4 years, 4 months ago (2016-08-04 09:44:44 UTC) #16
aleloi
I tested this patch in Chrome; it worked. Sound and no crash.
4 years, 4 months ago (2016-08-04 10:22:15 UTC) #17
aleloi
https://codereview.webrtc.org/2206223002/diff/40001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (left): https://codereview.webrtc.org/2206223002/diff/40001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#oldcode778 webrtc/media/engine/webrtcvoiceengine_unittest.cc:778: EXPECT_TRUE(voe_.GetPlayout(channel_num)); On 2016/08/04 09:44:44, the sun wrote: > On ...
4 years, 4 months ago (2016-08-04 11:38:59 UTC) #19
aleloi
https://codereview.webrtc.org/2206223002/diff/80001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (left): https://codereview.webrtc.org/2206223002/diff/80001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#oldcode2349 webrtc/media/engine/webrtcvoiceengine_unittest.cc:2349: EXPECT_FALSE(voe_.GetPlayout(channel_num1)); On 2016/08/04 11:38:59, aleloi wrote: > The first ...
4 years, 4 months ago (2016-08-04 11:39:30 UTC) #20
the sun
Nice, just a few more. https://codereview.webrtc.org/2206223002/diff/80001/webrtc/media/engine/fakewebrtcvoiceengine.h File webrtc/media/engine/fakewebrtcvoiceengine.h (right): https://codereview.webrtc.org/2206223002/diff/80001/webrtc/media/engine/fakewebrtcvoiceengine.h#newcode131 webrtc/media/engine/fakewebrtcvoiceengine.h:131: bool playout = false; ...
4 years, 4 months ago (2016-08-04 11:56:30 UTC) #21
aleloi
https://codereview.webrtc.org/2206223002/diff/80001/webrtc/media/engine/fakewebrtcvoiceengine.h File webrtc/media/engine/fakewebrtcvoiceengine.h (right): https://codereview.webrtc.org/2206223002/diff/80001/webrtc/media/engine/fakewebrtcvoiceengine.h#newcode131 webrtc/media/engine/fakewebrtcvoiceengine.h:131: bool playout = false; On 2016/08/04 11:56:29, the sun ...
4 years, 4 months ago (2016-08-04 12:12:36 UTC) #22
the sun
lgtm % nits https://codereview.webrtc.org/2206223002/diff/100001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (right): https://codereview.webrtc.org/2206223002/diff/100001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#newcode2359 webrtc/media/engine/webrtcvoiceengine_unittest.cc:2359: // Restart playout and make sure ...
4 years, 4 months ago (2016-08-04 12:22:18 UTC) #23
aleloi
Thanks! Uploading now. https://codereview.webrtc.org/2206223002/diff/100001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (right): https://codereview.webrtc.org/2206223002/diff/100001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#newcode2359 webrtc/media/engine/webrtcvoiceengine_unittest.cc:2359: // Restart playout and make sure ...
4 years, 4 months ago (2016-08-04 12:26:10 UTC) #24
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/2206223002/120001
4 years, 4 months ago (2016-08-04 12:26:46 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 4 months ago (2016-08-04 12:28:26 UTC) #30
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 12:28:37 UTC) #32
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/84ef615a5da13ffd3d8ac150485afa94ca3343c9
Cr-Commit-Position: refs/heads/master@{#13636}

Powered by Google App Engine
This is Rietveld 408576698