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

Issue 1551813002: Storing raw audio sink for default audio track. (Closed)

Created:
4 years, 11 months ago by Taylor Brandstetter
Modified:
4 years, 11 months ago
CC:
webrtc-reviews_webrtc.org
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Storing raw audio sink for default audio track. BUG=webrtc:5250 Committed: https://crrev.com/e591f9377f33f3f725a30faecd1bef1a71fa6b99 Cr-Commit-Position: refs/heads/master@{#11230} Committed: https://crrev.com/884f58523a75ace3239805759147948b7e868aea Cr-Commit-Position: refs/heads/master@{#11275}

Patch Set 1 #

Patch Set 2 : Adding include back. #

Total comments: 2

Patch Set 3 : Changing to scoped_refptr for AudioSinkInterface. #

Patch Set 4 : Adding unit tests for SetRawAudioSink. #

Total comments: 19

Patch Set 5 : Addressing solenberg@'s comments. #

Total comments: 1

Patch Set 6 : Returning const ref from fake call class. #

Patch Set 7 : Fixing Windows compile error. #

Patch Set 8 : Going back to scoped_ptr, and using proxy object to handle shared ownership. #

Patch Set 9 : Minor cleanup. #

Total comments: 10

Patch Set 10 : Adding back "if (default_sink_)" when creating default stream. #

Total comments: 4

Patch Set 11 : Removing obsolete "RefCountedObject" and adding an RTC_DCHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -2 lines) Patch
M talk/app/webrtc/peerconnectioninterface_unittest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M talk/media/webrtc/fakewebrtccall.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +26 lines, -1 line 0 comments Download
M talk/media/webrtc/webrtcvoiceengine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +57 lines, -0 lines 0 comments Download
M webrtc/audio_receive_stream.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 49 (14 generated)
Taylor Brandstetter
pbos and/or pthatcher: PTAL. This is very similar to how "default_recv_volume_" works, or "default_renderer_" in ...
4 years, 11 months ago (2015-12-29 20:29:09 UTC) #2
pthatcher1
For unit tests, I think you can just do something like: SetRawAudioSink(0, fake_sink); OnPacketReceived(crafted_rtp_packet_with_ssrc_1); // ...
4 years, 11 months ago (2015-12-30 16:31:50 UTC) #3
pbos-webrtc
+r solenberg who's better suited to take a look at this than me
4 years, 11 months ago (2015-12-30 16:35:14 UTC) #5
Taylor Brandstetter
Ok; unit tests for SetRawAudioSink added, and switched to scoped_refptr to address the issue Peter ...
4 years, 11 months ago (2016-01-05 18:47:21 UTC) #6
pthatcher1
lgtm
4 years, 11 months ago (2016-01-06 19:00:50 UTC) #7
the sun
Nice, thanks for doing this. Just a few minor comments. https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h File talk/app/webrtc/mediastreamprovider.h (right): https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h#newcode78 ...
4 years, 11 months ago (2016-01-08 13:14:27 UTC) #8
the sun
https://codereview.webrtc.org/1551813002/diff/60001/talk/media/webrtc/webrtcvoiceengine_unittest.cc File talk/media/webrtc/webrtcvoiceengine_unittest.cc (right): https://codereview.webrtc.org/1551813002/diff/60001/talk/media/webrtc/webrtcvoiceengine_unittest.cc#newcode3269 talk/media/webrtc/webrtcvoiceengine_unittest.cc:3269: EXPECT_EQ(fake_sink, call_.GetAudioReceiveStream(kSsrc1)->sink()); On 2016/01/08 13:14:26, the sun wrote: > ...
4 years, 11 months ago (2016-01-08 13:26:19 UTC) #9
Taylor Brandstetter
https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h File talk/app/webrtc/mediastreamprovider.h (right): https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h#newcode78 talk/app/webrtc/mediastreamprovider.h:78: rtc::scoped_refptr<webrtc::AudioSinkInterface> sink) = 0; On 2016/01/08 13:14:26, the sun ...
4 years, 11 months ago (2016-01-08 19:46:58 UTC) #10
the sun
LGTM. Thank you! https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h File talk/app/webrtc/mediastreamprovider.h (right): https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h#newcode78 talk/app/webrtc/mediastreamprovider.h:78: rtc::scoped_refptr<webrtc::AudioSinkInterface> sink) = 0; On 2016/01/08 ...
4 years, 11 months ago (2016-01-11 10:38:27 UTC) #11
Taylor Brandstetter
tommi: Could you take a look at audio_receive_stream.h? It looks like I'm still missing an ...
4 years, 11 months ago (2016-01-12 00:07:16 UTC) #13
tommi
lgtm for audio_receive_stream.* https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h File talk/app/webrtc/mediastreamprovider.h (right): https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h#newcode78 talk/app/webrtc/mediastreamprovider.h:78: rtc::scoped_refptr<webrtc::AudioSinkInterface> sink) = 0; On 2016/01/11 ...
4 years, 11 months ago (2016-01-12 08:58:06 UTC) #14
the sun
On 2016/01/12 08:58:06, tommi-webrtc wrote: > lgtm for audio_receive_stream.* > > https://codereview.webrtc.org/1551813002/diff/60001/talk/app/webrtc/mediastreamprovider.h > File talk/app/webrtc/mediastreamprovider.h ...
4 years, 11 months ago (2016-01-12 10:10:12 UTC) #15
pbos-webrtc
On 2016/01/12 10:10:12, the sun wrote: > On 2016/01/12 08:58:06, tommi-webrtc wrote: > > lgtm ...
4 years, 11 months ago (2016-01-12 10:15:03 UTC) #16
tommi
On 2016/01/12 10:15:03, pbos-webrtc wrote: > On 2016/01/12 10:10:12, the sun wrote: > > On ...
4 years, 11 months ago (2016-01-12 10:47:58 UTC) #17
tommi
On 2016/01/12 10:47:58, tommi-webrtc wrote: > On 2016/01/12 10:15:03, pbos-webrtc wrote: > > On 2016/01/12 ...
4 years, 11 months ago (2016-01-12 10:48:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551813002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551813002/120001
4 years, 11 months ago (2016-01-12 18:45:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 11 months ago (2016-01-12 20:45:59 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551813002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551813002/120001
4 years, 11 months ago (2016-01-12 23:47:57 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 11 months ago (2016-01-13 00:45:03 UTC) #26
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/e591f9377f33f3f725a30faecd1bef1a71fa6b99 Cr-Commit-Position: refs/heads/master@{#11230}
4 years, 11 months ago (2016-01-13 00:45:44 UTC) #28
tommi
On 2016/01/13 00:45:44, commit-bot: I haz the power wrote: > Patchset 7 (id:??) landed as ...
4 years, 11 months ago (2016-01-13 14:18:15 UTC) #29
tommi
On 2016/01/13 14:18:15, tommi-webrtc wrote: > On 2016/01/13 00:45:44, commit-bot: I haz the power wrote: ...
4 years, 11 months ago (2016-01-13 15:02:54 UTC) #30
the sun
On 2016/01/13 15:02:54, tommi-webrtc wrote: > On 2016/01/13 14:18:15, tommi-webrtc wrote: > > On 2016/01/13 ...
4 years, 11 months ago (2016-01-13 15:17:08 UTC) #31
Taylor Brandstetter
On 2016/01/13 15:02:54, tommi-webrtc wrote: > On 2016/01/13 14:18:15, tommi-webrtc wrote: > > On 2016/01/13 ...
4 years, 11 months ago (2016-01-13 19:57:56 UTC) #32
Taylor Brandstetter
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1588693002/ by deadbeef@webrtc.org. ...
4 years, 11 months ago (2016-01-13 20:00:03 UTC) #33
Taylor Brandstetter
tommi: I implemented your suggestion of a proxy object. Does this look ok now?
4 years, 11 months ago (2016-01-13 21:23:44 UTC) #35
tommi
Re "I don't see how the lifetime is any less deterministic with reference counting.": - ...
4 years, 11 months ago (2016-01-13 23:14:24 UTC) #36
Taylor Brandstetter
https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2201 talk/media/webrtc/webrtcvoiceengine.cc:2201: SetRawAudioSink(default_recv_ssrc_, std::move(proxy_sink)); On 2016/01/13 23:14:24, tommi-webrtc wrote: > Do ...
4 years, 11 months ago (2016-01-13 23:55:12 UTC) #37
the sun
lgtm with nits https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2201 talk/media/webrtc/webrtcvoiceengine.cc:2201: SetRawAudioSink(default_recv_ssrc_, std::move(proxy_sink)); On 2016/01/13 23:55:12, Taylor ...
4 years, 11 months ago (2016-01-14 09:24:39 UTC) #38
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2438 talk/media/webrtc/webrtcvoiceengine.cc:2438: default_sink_ = std::move(sink); On 2016/01/13 23:55:12, Taylor Brandstetter ...
4 years, 11 months ago (2016-01-14 12:34:13 UTC) #40
Taylor Brandstetter
https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2438 talk/media/webrtc/webrtcvoiceengine.cc:2438: default_sink_ = std::move(sink); On 2016/01/14 09:24:39, the sun wrote: ...
4 years, 11 months ago (2016-01-14 15:48:47 UTC) #41
the sun
lgtm https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.chromium.org/1551813002/diff/160001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2438 talk/media/webrtc/webrtcvoiceengine.cc:2438: default_sink_ = std::move(sink); On 2016/01/14 15:48:47, Taylor Brandstetter ...
4 years, 11 months ago (2016-01-14 15:51:44 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551813002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551813002/200001
4 years, 11 months ago (2016-01-15 16:22:54 UTC) #45
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 11 months ago (2016-01-15 17:20:09 UTC) #47
commit-bot: I haz the power
4 years, 11 months ago (2016-01-15 17:20:17 UTC) #49
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/884f58523a75ace3239805759147948b7e868aea
Cr-Commit-Position: refs/heads/master@{#11275}

Powered by Google App Engine
This is Rietveld 408576698