summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-11 18:07:24 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-11 18:07:24 +0000
commite8aaf2ca87fc0ee1083a252e37ba0debf48c5f27 (patch)
tree7eb6aee9d31513bcb78d2a014b0cdef73555f4f5 /remoting/host/chromoting_host.cc
parent88fa8bf4bdda72610f727a0a3f7ce5e4fd7d2dc4 (diff)
downloadchromium_src-e8aaf2ca87fc0ee1083a252e37ba0debf48c5f27.zip
chromium_src-e8aaf2ca87fc0ee1083a252e37ba0debf48c5f27.tar.gz
chromium_src-e8aaf2ca87fc0ee1083a252e37ba0debf48c5f27.tar.bz2
Implement audio capturer for chromoting host on Linux.
This change adds AudioCapturerLinux which works by reading audio stream from a named pipe. The name of the pipe is passed via command line. me2me_virtual_host.py will need to configure pulseaudio to stream audio to the the same pipe , that's coming in a separate CL. BUG=145891 Review URL: https://chromiumcodereview.appspot.com/10907041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r--remoting/host/chromoting_host.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 7dae872..8b71a1f 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -16,6 +16,7 @@
#include "remoting/codec/video_encoder.h"
#include "remoting/codec/video_encoder_row_based.h"
#include "remoting/codec/video_encoder_vp8.h"
+#include "remoting/host/audio_capturer.h"
#include "remoting/host/audio_scheduler.h"
#include "remoting/host/chromoting_host_context.h"
#include "remoting/host/desktop_environment.h"
@@ -83,7 +84,7 @@ ChromotingHost::ChromotingHost(
DCHECK(desktop_environment_);
DCHECK(context_->network_task_runner()->BelongsToCurrentThread());
- if (!desktop_environment_->audio_capturer()) {
+ if (!AudioCapturer::IsSupported()) {
// Disable audio by replacing our list of supported audio configurations
// with the NONE config.
protocol_config_->mutable_audio_configs()->clear();