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

Side by Side Diff: media/audio/audio_manager_base.cc

Issue 197453002: Support 3 channels for audio input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/audio_manager_base.h" 5 #include "media/audio/audio_manager_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 10 matching lines...) Expand all
21 static const int kStreamCloseDelaySeconds = 5; 21 static const int kStreamCloseDelaySeconds = 5;
22 22
23 // Default maximum number of output streams that can be open simultaneously 23 // Default maximum number of output streams that can be open simultaneously
24 // for all platforms. 24 // for all platforms.
25 static const int kDefaultMaxOutputStreams = 16; 25 static const int kDefaultMaxOutputStreams = 16;
26 26
27 // Default maximum number of input streams that can be open simultaneously 27 // Default maximum number of input streams that can be open simultaneously
28 // for all platforms. 28 // for all platforms.
29 static const int kDefaultMaxInputStreams = 16; 29 static const int kDefaultMaxInputStreams = 16;
30 30
31 static const int kMaxInputChannels = 2; 31 static const int kMaxInputChannels = 3;
32 32
33 const char AudioManagerBase::kDefaultDeviceName[] = "Default"; 33 const char AudioManagerBase::kDefaultDeviceName[] = "Default";
34 const char AudioManagerBase::kDefaultDeviceId[] = "default"; 34 const char AudioManagerBase::kDefaultDeviceId[] = "default";
35 const char AudioManagerBase::kLoopbackInputDeviceId[] = "loopback"; 35 const char AudioManagerBase::kLoopbackInputDeviceId[] = "loopback";
36 36
37 struct AudioManagerBase::DispatcherParams { 37 struct AudioManagerBase::DispatcherParams {
38 DispatcherParams(const AudioParameters& input, 38 DispatcherParams(const AudioParameters& input,
39 const AudioParameters& output, 39 const AudioParameters& output,
40 const std::string& output_device_id) 40 const std::string& output_device_id)
41 : input_params(input), 41 : input_params(input),
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 return 0; 395 return 0;
396 } 396 }
397 397
398 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog( 398 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog(
399 AudioLogFactory::AudioComponent component) { 399 AudioLogFactory::AudioComponent component) {
400 return audio_log_factory_->CreateAudioLog(component); 400 return audio_log_factory_->CreateAudioLog(component);
401 } 401 }
402 402
403 } // namespace media 403 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698