summaryrefslogtreecommitdiffstats
path: root/media/base
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 21:48:54 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 21:48:54 +0000
commit8f168ea0f33a957a489227d30ba8c8b6e79b51f1 (patch)
treee5aed0b85ec73e970cf7c22d0dc15897ddf38baa /media/base
parent87339f0bdb7fa60bad0616348a6a2aa705d4716a (diff)
downloadchromium_src-8f168ea0f33a957a489227d30ba8c8b6e79b51f1.zip
chromium_src-8f168ea0f33a957a489227d30ba8c8b6e79b51f1.tar.gz
chromium_src-8f168ea0f33a957a489227d30ba8c8b6e79b51f1.tar.bz2
Implement audio recording for Linux via ALSA.
There are no new unit tests because a cross platform unit test added in CL 3357004 covers this code. BUG=53598 TEST=media_unittests --gtest_filter=AudioInputTest.* Review URL: http://codereview.chromium.org/3299005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base')
-rw-r--r--media/base/media_switches.cc4
-rw-r--r--media/base/media_switches.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
index e2612c25..ee47bb3 100644
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -8,7 +8,9 @@ namespace switches {
#if defined(OS_LINUX)
// The Alsa device to use when opening an audio stream.
-const char kAlsaDevice[] = "alsa-device";
+const char kAlsaOutputDevice[] = "alsa-output-device";
+// The Alsa device to use when opening an audio input stream.
+const char kAlsaInputDevice[] = "alsa-input-device";
#endif
// Enable hardware decoding through gpu process.
diff --git a/media/base/media_switches.h b/media/base/media_switches.h
index 6dd553a..67aa4f1 100644
--- a/media/base/media_switches.h
+++ b/media/base/media_switches.h
@@ -12,7 +12,8 @@
namespace switches {
#if defined(OS_LINUX)
-extern const char kAlsaDevice[];
+extern const char kAlsaOutputDevice[];
+extern const char kAlsaInputDevice[];
#endif
extern const char kEnableAcceleratedDecoding[];