OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |