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/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 static const int kDefaultMaxOutputStreams = 16; | 27 static const int kDefaultMaxOutputStreams = 16; |
28 | 28 |
29 // Default maximum number of input streams that can be open simultaneously | 29 // Default maximum number of input streams that can be open simultaneously |
30 // for all platforms. | 30 // for all platforms. |
31 static const int kDefaultMaxInputStreams = 16; | 31 static const int kDefaultMaxInputStreams = 16; |
32 | 32 |
33 static const int kMaxInputChannels = 3; | 33 static const int kMaxInputChannels = 3; |
34 | 34 |
35 const char AudioManagerBase::kDefaultDeviceName[] = "Default"; | 35 const char AudioManagerBase::kDefaultDeviceName[] = "Default"; |
36 const char AudioManagerBase::kDefaultDeviceId[] = "default"; | 36 const char AudioManagerBase::kDefaultDeviceId[] = "default"; |
| 37 const char AudioManagerBase::kCommunicationsDeviceId[] = "communications"; |
| 38 const char AudioManagerBase::kCommunicationsDeviceName[] = "Communications"; |
37 const char AudioManagerBase::kLoopbackInputDeviceId[] = "loopback"; | 39 const char AudioManagerBase::kLoopbackInputDeviceId[] = "loopback"; |
38 | 40 |
39 struct AudioManagerBase::DispatcherParams { | 41 struct AudioManagerBase::DispatcherParams { |
40 DispatcherParams(const AudioParameters& input, | 42 DispatcherParams(const AudioParameters& input, |
41 const AudioParameters& output, | 43 const AudioParameters& output, |
42 const std::string& output_device_id) | 44 const std::string& output_device_id) |
43 : input_params(input), | 45 : input_params(input), |
44 output_params(output), | 46 output_params(output), |
45 output_device_id(output_device_id) {} | 47 output_device_id(output_device_id) {} |
46 ~DispatcherParams() {} | 48 ~DispatcherParams() {} |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog( | 413 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog( |
412 AudioLogFactory::AudioComponent component) { | 414 AudioLogFactory::AudioComponent component) { |
413 return audio_log_factory_->CreateAudioLog(component); | 415 return audio_log_factory_->CreateAudioLog(component); |
414 } | 416 } |
415 | 417 |
416 void AudioManagerBase::SetHasKeyboardMic() { | 418 void AudioManagerBase::SetHasKeyboardMic() { |
417 NOTREACHED(); | 419 NOTREACHED(); |
418 } | 420 } |
419 | 421 |
420 } // namespace media | 422 } // namespace media |
OLD | NEW |