Commit cbeca15c authored by grunell@chromium.org's avatar grunell@chromium.org

Support 3 channels for audio input.

Test code in https://codereview.chromium.org/255753003/

BUG=345296

Review URL: https://codereview.chromium.org/197453002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266849 0039d316-1c4b-4281-b951-d872f2087c98
parent af8f5450
...@@ -173,7 +173,8 @@ bool WebRtcAudioCapturer::Initialize() { ...@@ -173,7 +173,8 @@ bool WebRtcAudioCapturer::Initialize() {
// Verify that the reported input channel configuration is supported. // Verify that the reported input channel configuration is supported.
if (channel_layout != media::CHANNEL_LAYOUT_MONO && if (channel_layout != media::CHANNEL_LAYOUT_MONO &&
channel_layout != media::CHANNEL_LAYOUT_STEREO) { channel_layout != media::CHANNEL_LAYOUT_STEREO &&
channel_layout != media::CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC) {
DLOG(ERROR) << channel_layout DLOG(ERROR) << channel_layout
<< " is not a supported input channel configuration."; << " is not a supported input channel configuration.";
return false; return false;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "media/base/user_input_monitor.h" #include "media/base/user_input_monitor.h"
namespace { namespace {
const int kMaxInputChannels = 2; const int kMaxInputChannels = 3;
// TODO(henrika): remove usage of timers and add support for proper // TODO(henrika): remove usage of timers and add support for proper
// notification of when the input device is removed. This was originally added // notification of when the input device is removed. This was originally added
......
...@@ -28,7 +28,7 @@ static const int kDefaultMaxOutputStreams = 16; ...@@ -28,7 +28,7 @@ static const int kDefaultMaxOutputStreams = 16;
// for all platforms. // for all platforms.
static const int kDefaultMaxInputStreams = 16; static const int kDefaultMaxInputStreams = 16;
static const int kMaxInputChannels = 2; static const int kMaxInputChannels = 3;
const char AudioManagerBase::kDefaultDeviceName[] = "Default"; const char AudioManagerBase::kDefaultDeviceName[] = "Default";
const char AudioManagerBase::kDefaultDeviceId[] = "default"; const char AudioManagerBase::kDefaultDeviceId[] = "default";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment