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

Unified Diff: content/public/renderer/media_stream_audio_sink.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: Address review comments. 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/public/renderer/media_stream_audio_sink.h
diff --git a/content/public/renderer/media_stream_audio_sink.h b/content/public/renderer/media_stream_audio_sink.h
index d1901dce8bc1cdb839d410497d4693ada50be381..938d817066b7c4556f56b4b233f7452d1beacc31 100644
--- a/content/public/renderer/media_stream_audio_sink.h
+++ b/content/public/renderer/media_stream_audio_sink.h
@@ -37,6 +37,11 @@ class CONTENT_EXPORT MediaStreamAudioSink : public MediaStreamSink {
static void RemoveFromAudioTrack(MediaStreamAudioSink* sink,
const blink::WebMediaStreamTrack& track);
+ // Returns the format of the audio track.
+ // Called on the main render thread.
+ static const media::AudioParameters GetFormatFromAudioTrack(
dmichael (off chromium) 2015/01/27 18:24:10 the return type shouldn't be const. No need to di
Anand Mistry (off Chromium) 2015/01/27 23:14:50 Done.
+ const blink::WebMediaStreamTrack& track);
+
// Callback called to deliver audio data. The data in |audio_bus| respects the
// AudioParameters passed in the last call to OnSetFormat(). Called on
// real-time audio thread.
« no previous file with comments | « no previous file | content/public/renderer/media_stream_audio_sink.cc » ('j') | content/renderer/media/webrtc_audio_capturer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698