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

Unified Diff: content/renderer/media/webrtc_local_audio_track.h

Issue 857093002: Set audio format before adding pepper sink to audio track. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 5 years, 11 months 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_local_audio_track.h
diff --git a/content/renderer/media/webrtc_local_audio_track.h b/content/renderer/media/webrtc_local_audio_track.h
index 3c912ea03b0747ba97cb32d1cfbe75f02bc4d82f..0cfdb3e966934c51ca4ef4133e4a0615f0de4088 100644
--- a/content/renderer/media/webrtc_local_audio_track.h
+++ b/content/renderer/media/webrtc_local_audio_track.h
@@ -67,6 +67,11 @@ class CONTENT_EXPORT WebRtcLocalAudioTrack
webrtc::AudioTrackInterface* GetAudioAdapter() override;
+ // Returns the output format of the capture source. May return an invalid
+ // AudioParameters if the format is not yet available.
+ // Called on the main render thread.
dmichael (off chromium) 2015/01/20 17:07:03 It looks like you could check that with main_rende
Anand Mistry (off Chromium) 2015/01/27 02:12:10 Done.
+ const media::AudioParameters& GetOutputFormat() const;
+
// Method called by the capturer to deliver the capture data.
// Called on the capture audio thread.
void Capture(const media::AudioBus& audio_bus,

Powered by Google App Engine
This is Rietveld 408576698