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

Unified Diff: content/renderer/pepper/pepper_media_stream_audio_track_host.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/pepper/pepper_media_stream_audio_track_host.h
diff --git a/content/renderer/pepper/pepper_media_stream_audio_track_host.h b/content/renderer/pepper/pepper_media_stream_audio_track_host.h
index 4ed3e215ddffb6a4359020ceff26041c382baeaa..fd2fc544429dc3eb742c2778c3e16d1d661b8291 100644
--- a/content/renderer/pepper/pepper_media_stream_audio_track_host.h
+++ b/content/renderer/pepper/pepper_media_stream_audio_track_host.h
@@ -53,6 +53,9 @@ class PepperMediaStreamAudioTrackHost : public PepperMediaStreamTrackHostBase {
void SendConfigureReply(int32_t result);
private:
+ // To allow |DidConnectPendingHostToResource()| to call |OnSetFormat()|.
+ friend class PepperMediaStreamAudioTrackHost;
dmichael (off chromium) 2015/01/20 17:07:03 I think I'd rather you either: 1) Make OnSetFormat
Anand Mistry (off Chromium) 2015/01/27 02:12:10 Done #1.
+
// Initializes buffers on the main thread.
void SetFormatOnMainThread(int bytes_per_second, int bytes_per_frame);

Powered by Google App Engine
This is Rietveld 408576698