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

Unified Diff: content/renderer/media/webrtc_audio_capturer.cc

Issue 90743004: Add generic interfaces for the sinks of the media stream audio track (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed Per's comments. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc_audio_capturer.cc
diff --git a/content/renderer/media/webrtc_audio_capturer.cc b/content/renderer/media/webrtc_audio_capturer.cc
index 48b9e3b83cb49df3c027a8220eb2fe0ab27a3a96..5640848cf0dcf4e85ae18cb590bd184005ca7c6e 100644
--- a/content/renderer/media/webrtc_audio_capturer.cc
+++ b/content/renderer/media/webrtc_audio_capturer.cc
@@ -55,10 +55,10 @@ class WebRtcAudioCapturer::TrackOwner
}
}
- void SetCaptureFormat(const media::AudioParameters& params) {
+ void OnSetFormat(const media::AudioParameters& params) {
base::AutoLock lock(lock_);
if (delegate_)
- delegate_->SetCaptureFormat(params);
+ delegate_->OnSetFormat(params);
}
void Reset() {
@@ -223,7 +223,7 @@ void WebRtcAudioCapturer::AddTrack(WebRtcLocalAudioTrack* track) {
tracks_.push_back(track_owner);
// Also push the track to |tracks_to_notify_format_| so that we will call
- // SetCaptureFormat() on the new track.
+ // OnSetFormat() on the new track.
tracks_to_notify_format_.push_back(track_owner);
}
@@ -435,7 +435,7 @@ void WebRtcAudioCapturer::Capture(media::AudioBus* audio_source,
// |tracks_to_notify_format| is empty.
for (TrackList::const_iterator it = tracks_to_notify_format.begin();
it != tracks_to_notify_format.end(); ++it) {
- (*it)->SetCaptureFormat(params);
+ (*it)->OnSetFormat(params);
}
// Feed the data to the tracks.

Powered by Google App Engine
This is Rietveld 408576698