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

Unified Diff: talk/session/media/channel.cc

Issue 1505253004: Support for remote audio into tracks (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Change when we fire callbacks for external media Created 5 years 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: talk/session/media/channel.cc
diff --git a/talk/session/media/channel.cc b/talk/session/media/channel.cc
index 588a03661cf1e84e8d3d75e8cd058abd273c3e73..7f4ab63f716746e12b0de988c5b6343365478563 100644
--- a/talk/session/media/channel.cc
+++ b/talk/session/media/channel.cc
@@ -1376,6 +1376,11 @@ bool VoiceChannel::SetOutputVolume(uint32_t ssrc, double volume) {
media_channel(), ssrc, volume));
}
+void VoiceChannel::SetRawAudioSink(uint32_t ssrc, AudioRenderer::Sink* sink) {
+ worker_thread()->Invoke<void>(
perkj_webrtc 2015/12/10 12:24:05 Use InvokeOnWorker same as the others.
tommi 2015/12/10 22:37:25 InvokeOnWorker unfortunately only works for method
+ Bind(&VoiceMediaChannel::SetRawAudioSink, media_channel(), ssrc, sink));
+}
+
bool VoiceChannel::GetStats(VoiceMediaInfo* stats) {
return InvokeOnWorker(Bind(&VoiceMediaChannel::GetStats,
media_channel(), stats));

Powered by Google App Engine
This is Rietveld 408576698