| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_device_name.h" | 5 #include "media/audio/audio_device_name.h" |
| 6 #include "media/audio/audio_device_description.h" |
| 6 | 7 |
| 7 namespace media { | 8 namespace media { |
| 8 | 9 |
| 9 AudioDeviceName::AudioDeviceName() {} | 10 AudioDeviceName::AudioDeviceName() {} |
| 10 | 11 |
| 11 AudioDeviceName::AudioDeviceName(const std::string& device_name, | 12 AudioDeviceName::AudioDeviceName(const std::string& device_name, |
| 12 const std::string& unique_id) | 13 const std::string& unique_id) |
| 13 : device_name(device_name), | 14 : device_name(device_name), |
| 14 unique_id(unique_id) { | 15 unique_id(unique_id) { |
| 15 } | 16 } |
| 16 | 17 |
| 18 // static |
| 19 AudioDeviceName AudioDeviceName::CreateDefault() { |
| 20 return AudioDeviceName(AudioDeviceDescription::GetDefaultDeviceName(), |
| 21 AudioDeviceDescription::kDefaultDeviceId); |
| 22 } |
| 23 |
| 24 // static |
| 25 AudioDeviceName AudioDeviceName::CreateCommunications() { |
| 26 return AudioDeviceName(AudioDeviceDescription::GetCommunicationsDeviceName(), |
| 27 AudioDeviceDescription::kCommunicationsDeviceId); |
| 28 } |
| 29 |
| 17 } // namespace media | 30 } // namespace media |
| 18 | |
| OLD | NEW |