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

Unified Diff: remoting/host/screen_recorder.cc

Issue 10532211: Added piping for sending audio packets from host to client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary #include Created 8 years, 6 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: remoting/host/screen_recorder.cc
diff --git a/remoting/host/screen_recorder.cc b/remoting/host/screen_recorder.cc
index e7b414c9afbe0d909bfd7806ad10bb00fbdb1bc3..925102af16fdc63c652b84b0e68392d2abcd97e8 100644
--- a/remoting/host/screen_recorder.cc
+++ b/remoting/host/screen_recorder.cc
@@ -280,6 +280,23 @@ void ScreenRecorder::VideoFrameSentCallback() {
FROM_HERE, base::Bind(&ScreenRecorder::DoFinishOneRecording, this));
}
+void ScreenRecorder::DoSendAudioPacket(scoped_ptr<AudioPacket> packet) {
+ DCHECK(network_loop_->BelongsToCurrentThread());
+
+ if (network_stopped_ || connections_.empty())
+ return;
+
+ base::Closure callback = base::Bind(
+ &ScreenRecorder::AudioSamplesSentCallback, this);
+
+ connections_.front()->audio_stub()->ProcessAudioPacket(
+ packet.Pass(), callback);
+}
+
+void ScreenRecorder::AudioSamplesSentCallback() {
+ // TODO(kxing): continue sending audio packets
+}
+
void ScreenRecorder::DoStopOnNetworkThread(const base::Closure& done_task) {
DCHECK(network_loop_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698