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

Issue 90743004: Add generic interfaces for the sinks of the media stream audio track (Closed)

Created:
7 years ago by no longer working on chromium
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add generic interfaces for the sinks of the media stream audio track to get the audio data, and this patch also adds interfaces of AddToAudioTrack and RemoveFromAudioTrack to connect the sink to the audio track. BUG=322547 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238503

Patch Set 1 #

Total comments: 5

Patch Set 2 : moved the existing code from WebRtcCapturerSink to MediaStreamAudioSink #

Patch Set 3 : addressed Per's comments. #

Total comments: 26

Patch Set 4 : addressed the comments, separate the pc audio sinks with media stream sink. #

Patch Set 5 : added a DCHECK(other) and rebased #

Total comments: 25

Patch Set 6 : addressed Tommi's comments and added the missing interface. #

Total comments: 2

Patch Set 7 : fixed the header. #

Total comments: 5

Patch Set 8 : fixed the bots #

Total comments: 26

Patch Set 9 : rebased, addressed Alpha, Per, John's comments. #

Total comments: 8

Patch Set 10 : fixed the nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+702 lines, -401 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -2 lines 0 comments Download
A content/public/renderer/media_stream_audio_sink.h View 1 2 3 4 5 6 7 8 9 1 chunk +58 lines, -0 lines 0 comments Download
A content/public/renderer/media_stream_audio_sink.cc View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_audio_sink_owner.h View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_audio_sink_owner.cc View 1 2 3 4 5 6 7 8 9 1 chunk +63 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_audio_track_sink.h View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_dependency_factory.cc View 1 2 3 4 chunks +7 lines, -5 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -15 lines 0 comments Download
M content/renderer/media/media_stream_track_extra_data.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_track_extra_data.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
A content/renderer/media/peer_connection_audio_sink_owner.h View 1 2 3 4 5 6 7 8 9 1 chunk +52 lines, -0 lines 0 comments Download
A content/renderer/media/peer_connection_audio_sink_owner.cc View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
M content/renderer/media/remote_media_stream_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/webaudio_capturer_source.cc View 1 2 chunks +1 line, -6 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
D content/renderer/media/webrtc_audio_capturer_sink_owner.h View 1 1 chunk +0 lines, -66 lines 0 comments Download
D content/renderer/media/webrtc_audio_capturer_sink_owner.cc View 1 1 chunk +0 lines, -57 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer_unittest.cc View 1 2 3 4 5 6 3 chunks +20 lines, -20 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.h View 1 2 3 chunks +26 lines, -26 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.cc View 1 2 chunks +11 lines, -11 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 5 chunks +25 lines, -24 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.h View 1 2 3 4 5 6 7 8 5 chunks +18 lines, -19 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 2 3 4 5 6 7 8 6 chunks +11 lines, -27 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_source_provider.h View 1 2 2 chunks +12 lines, -15 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_source_provider.cc View 1 2 3 chunks +5 lines, -12 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_source_provider_unittest.cc View 1 2 3 chunks +9 lines, -14 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.h View 1 2 3 5 chunks +16 lines, -7 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.cc View 1 2 3 7 chunks +76 lines, -24 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track_unittest.cc View 1 2 12 chunks +32 lines, -38 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
no longer working on chromium
Guys, it is the sister CL to add the generic interfaces for sinks of audio ...
7 years ago (2013-11-27 13:36:20 UTC) #1
perkj_chrome
Discussed off line. I suggest this cl adds the sink interface that only include things ...
7 years ago (2013-11-27 14:56:39 UTC) #2
no longer working on chromium
Hey, Per gave a good proposal to hide those peer connection specific variables under the ...
7 years ago (2013-11-27 16:27:56 UTC) #3
no longer working on chromium
+ Tommi.
7 years ago (2013-11-27 16:32:52 UTC) #4
Jói
Cool stuff. https://codereview.chromium.org/90743004/diff/60001/content/public/renderer/media_stream_audio_sink.h File content/public/renderer/media_stream_audio_sink.h (right): https://codereview.chromium.org/90743004/diff/60001/content/public/renderer/media_stream_audio_sink.h#newcode25 content/public/renderer/media_stream_audio_sink.h:25: // Callback on delivering the audio interleaved ...
7 years ago (2013-11-27 17:35:01 UTC) #5
tommi (sloooow) - chröme
I maybe a little bit out of the loop with regards to having two pointers ...
7 years ago (2013-11-28 09:12:10 UTC) #6
no longer working on chromium
HI Guys, I have already addressed all the comments, implemented the AddToAudioTrack and removeFromAudioTrack, and ...
7 years ago (2013-11-28 17:27:17 UTC) #7
no longer working on chromium
https://codereview.chromium.org/90743004/diff/60001/content/renderer/media/media_stream_audio_sink_owner.cc File content/renderer/media/media_stream_audio_sink_owner.cc (right): https://codereview.chromium.org/90743004/diff/60001/content/renderer/media/media_stream_audio_sink_owner.cc#newcode68 content/renderer/media/media_stream_audio_sink_owner.cc:68: bool MediaStreamAudioSinkOwner::IsEqual( On 2013/11/28 17:27:18, xians1 wrote: > On ...
7 years ago (2013-11-28 19:22:21 UTC) #8
tommi (sloooow) - chröme
can you ping back when you've uploaded everything? On Thu, Nov 28, 2013 at 8:22 ...
7 years ago (2013-11-29 11:48:18 UTC) #9
no longer working on chromium
HI guys, now it has everything. Jochen, may I have your owner stamp for content_renderer.gypi? ...
7 years ago (2013-11-29 12:04:18 UTC) #10
tommi (sloooow) - chröme
https://codereview.chromium.org/90743004/diff/120001/content/renderer/media/media_stream_audio_sink_owner.cc File content/renderer/media/media_stream_audio_sink_owner.cc (right): https://codereview.chromium.org/90743004/diff/120001/content/renderer/media/media_stream_audio_sink_owner.cc#newcode28 content/renderer/media/media_stream_audio_sink_owner.cc:28: delegate_->OnData(audio_data, what about the return value from delegate_->OnData()? https://codereview.chromium.org/90743004/diff/120001/content/renderer/media/media_stream_audio_sink_owner.cc#newcode37 ...
7 years ago (2013-11-29 13:00:20 UTC) #11
no longer working on chromium
PTAL. Thanks, SX https://codereview.chromium.org/90743004/diff/120001/content/renderer/media/media_stream_audio_sink_owner.cc File content/renderer/media/media_stream_audio_sink_owner.cc (right): https://codereview.chromium.org/90743004/diff/120001/content/renderer/media/media_stream_audio_sink_owner.cc#newcode28 content/renderer/media/media_stream_audio_sink_owner.cc:28: delegate_->OnData(audio_data, On 2013/11/29 13:00:20, tommi wrote: ...
7 years ago (2013-11-29 15:02:03 UTC) #12
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/90743004/diff/120001/content/renderer/media/media_stream_audio_sink_owner.h File content/renderer/media/media_stream_audio_sink_owner.h (right): https://codereview.chromium.org/90743004/diff/120001/content/renderer/media/media_stream_audio_sink_owner.h#newcode36 content/renderer/media/media_stream_audio_sink_owner.h:36: virtual bool IsEqual(const PeerConnectionAudioSink* other) const OVERRIDE { ...
7 years ago (2013-11-29 15:31:25 UTC) #13
Jói
LGTM https://codereview.chromium.org/90743004/diff/140001/content/renderer/media/media_stream_audio_track_sink.h File content/renderer/media/media_stream_audio_track_sink.h (right): https://codereview.chromium.org/90743004/diff/140001/content/renderer/media/media_stream_audio_track_sink.h#newcode12 content/renderer/media/media_stream_audio_track_sink.h:12: //#include "content/renderer/media/media_stream_audio_sink_owner.h" You probably want to remove this ...
7 years ago (2013-11-29 15:47:58 UTC) #14
jochen (gone - plz use gerrit)
https://codereview.chromium.org/90743004/diff/160001/content/public/renderer/media_stream_audio_sink.h File content/public/renderer/media_stream_audio_sink.h (right): https://codereview.chromium.org/90743004/diff/160001/content/public/renderer/media_stream_audio_sink.h#newcode23 content/public/renderer/media_stream_audio_sink.h:23: class CONTENT_EXPORT MediaStreamAudioSink { i'm not sure I understand ...
7 years ago (2013-12-02 10:24:53 UTC) #15
no longer working on chromium
https://codereview.chromium.org/90743004/diff/140001/content/renderer/media/media_stream_audio_track_sink.h File content/renderer/media/media_stream_audio_track_sink.h (right): https://codereview.chromium.org/90743004/diff/140001/content/renderer/media/media_stream_audio_track_sink.h#newcode12 content/renderer/media/media_stream_audio_track_sink.h:12: //#include "content/renderer/media/media_stream_audio_sink_owner.h" On 2013/11/29 15:47:59, Jói wrote: > You ...
7 years ago (2013-12-02 10:40:41 UTC) #16
Jói
https://codereview.chromium.org/90743004/diff/160001/content/public/renderer/media_stream_audio_sink.h File content/public/renderer/media_stream_audio_sink.h (right): https://codereview.chromium.org/90743004/diff/160001/content/public/renderer/media_stream_audio_sink.h#newcode43 content/public/renderer/media_stream_audio_sink.h:43: CONTENT_EXPORT void AddToAudioTrack( On 2013/12/02 10:40:42, xians1 wrote: > ...
7 years ago (2013-12-02 10:45:22 UTC) #17
jochen (gone - plz use gerrit)
On 2013/12/02 10:40:41, xians1 wrote: > https://codereview.chromium.org/90743004/diff/140001/content/renderer/media/media_stream_audio_track_sink.h > File content/renderer/media/media_stream_audio_track_sink.h (right): > > https://codereview.chromium.org/90743004/diff/140001/content/renderer/media/media_stream_audio_track_sink.h#newcode12 > ...
7 years ago (2013-12-02 10:45:34 UTC) #18
jochen (gone - plz use gerrit)
ok, Joi is the API guy, so lgtm :)
7 years ago (2013-12-02 10:46:42 UTC) #19
no longer working on chromium
Hi John, could you please take another look at the new content/public interface to see ...
7 years ago (2013-12-02 11:28:26 UTC) #20
perkj_chrome
Consider using AddFromAudioTrack and RemoveFromAudioTrack in the webrtc_local_audio_renderer. https://codereview.chromium.org/90743004/diff/180001/content/public/renderer/media_stream_audio_sink.h File content/public/renderer/media_stream_audio_sink.h (right): https://codereview.chromium.org/90743004/diff/180001/content/public/renderer/media_stream_audio_sink.h#newcode30 content/public/renderer/media_stream_audio_sink.h:30: virtual ...
7 years ago (2013-12-02 14:57:38 UTC) #21
Alpha Left Google
https://codereview.chromium.org/90743004/diff/180001/content/public/renderer/media_stream_audio_sink.cc File content/public/renderer/media_stream_audio_sink.cc (right): https://codereview.chromium.org/90743004/diff/180001/content/public/renderer/media_stream_audio_sink.cc#newcode18 content/public/renderer/media_stream_audio_sink.cc:18: MediaStreamTrackExtraData* extra_data = track.isNull() can be true and extra_data ...
7 years ago (2013-12-02 19:11:37 UTC) #22
jam
content/public lgtm with nits from https://codereview.chromium.org/83023005/ applied here (moving static methods to interface, and get ...
7 years ago (2013-12-03 00:49:24 UTC) #23
no longer working on chromium
I have already addressed Alpha, Per and John's comments. Alpha and Per, could you please ...
7 years ago (2013-12-03 11:45:44 UTC) #24
perkj_chrome
just nits and a question. https://codereview.chromium.org/90743004/diff/180001/content/public/renderer/media_stream_audio_sink.h File content/public/renderer/media_stream_audio_sink.h (right): https://codereview.chromium.org/90743004/diff/180001/content/public/renderer/media_stream_audio_sink.h#newcode37 content/public/renderer/media_stream_audio_sink.h:37: virtual void OnSetFormat(const media::AudioParameters& ...
7 years ago (2013-12-03 13:38:52 UTC) #25
perkj_chrome
just nits and a question.
7 years ago (2013-12-03 13:38:57 UTC) #26
no longer working on chromium
Per, PTAL. Thanks, SX https://codereview.chromium.org/90743004/diff/180001/content/public/renderer/media_stream_audio_sink.h File content/public/renderer/media_stream_audio_sink.h (right): https://codereview.chromium.org/90743004/diff/180001/content/public/renderer/media_stream_audio_sink.h#newcode37 content/public/renderer/media_stream_audio_sink.h:37: virtual void OnSetFormat(const media::AudioParameters& params) ...
7 years ago (2013-12-03 13:50:28 UTC) #27
perkj_chrome
lgtm
7 years ago (2013-12-03 14:14:34 UTC) #28
Alpha Left Google
Okay. LGTM as the design has been discussed with other reviewers.
7 years ago (2013-12-03 17:30:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/90743004/240001
7 years ago (2013-12-03 17:49:22 UTC) #30
no longer working on chromium
Thanks guys, I am landing this now and will create a separate CL to inherit ...
7 years ago (2013-12-03 17:54:39 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/90743004/240001
7 years ago (2013-12-03 19:14:30 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/90743004/240001
7 years ago (2013-12-03 23:43:32 UTC) #33
commit-bot: I haz the power
7 years ago (2013-12-04 00:46:11 UTC) #34
Message was sent while issue was closed.
Change committed as 238503

Powered by Google App Engine
This is Rietveld 408576698