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

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: Compile fix. 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
« no previous file with comments | « no previous file | content/public/renderer/media_stream_audio_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..862c32baa68adbe7b213ce1ce3e22c9158a4eb0b 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 media::AudioParameters GetFormatFromAudioTrack(
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698