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

Unified Diff: remoting/host/screen_recorder.h

Issue 10532211: Added piping for sending audio packets from host to client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.h
diff --git a/remoting/host/screen_recorder.h b/remoting/host/screen_recorder.h
index 462ade79af53584a8a7e3effdc686aee2f9301f4..b3ae6b13141354e296af8872003ad2ddd954d936 100644
--- a/remoting/host/screen_recorder.h
+++ b/remoting/host/screen_recorder.h
@@ -17,6 +17,7 @@
#include "remoting/base/encoder.h"
#include "remoting/host/capturer.h"
#include "remoting/host/capture_scheduler.h"
+#include "remoting/proto/audio.pb.h"
#include "remoting/proto/video.pb.h"
namespace base {
@@ -133,6 +134,8 @@ class ScreenRecorder : public base::RefCountedThreadSafe<ScreenRecorder> {
void DoSendVideoPacket(scoped_ptr<VideoPacket> packet);
+ void DoSendAudioPacket(scoped_ptr<AudioPacket> packet);
+
void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection,
int width, int height);
@@ -143,6 +146,8 @@ class ScreenRecorder : public base::RefCountedThreadSafe<ScreenRecorder> {
// each last packet in a frame.
void VideoFrameSentCallback();
+ void AudioSamplesSentCallback();
+
// Send updated cursor shape to client.
void DoSendCursorShape(scoped_ptr<protocol::CursorShapeInfo> cursor_shape);

Powered by Google App Engine
This is Rietveld 408576698