| Index: media/audio/win/device_enumeration_win.h
|
| diff --git a/media/audio/win/device_enumeration_win.h b/media/audio/win/device_enumeration_win.h
|
| index a797eec4521eae58aa0fab6f4ab64a3ec9654016..3d44670a6d334deff5374ec9445e579fdfe2c4dd 100644
|
| --- a/media/audio/win/device_enumeration_win.h
|
| +++ b/media/audio/win/device_enumeration_win.h
|
| @@ -1,12 +1,16 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| #ifndef MEDIA_AUDIO_WIN_DEVICE_ENUMERATION_WIN_H_
|
| #define MEDIA_AUDIO_WIN_DEVICE_ENUMERATION_WIN_H_
|
|
|
| +#include <string>
|
| +
|
| #include "media/audio/audio_device_name.h"
|
|
|
| +namespace media {
|
| +
|
| // Returns a list of audio input device structures (name and unique device ID)
|
| // using the MMDevice API which is supported on Windows Vista and higher.
|
| // Example record in the output list:
|
| @@ -22,5 +26,15 @@ bool GetInputDeviceNamesWin(media::AudioDeviceNames* device_names);
|
| // - unique_id: "Microphone (Realtek High Defini" (same as friendly name).
|
| bool GetInputDeviceNamesWinXP(media::AudioDeviceNames* device_names);
|
|
|
| +// Converts a device ID generated by |GetInputDeviceNamesWin()| to the
|
| +// corresponding ID by |GetInputDeviceNamesWinXP()|. Returns an empty string on
|
| +// failure.
|
| +// Example input and output:
|
| +// - input ID: "{0.0.1.00000000}.{8db6020f-18e3-4f25-b6f5-7726c9122574}"
|
| +// - output ID: "Microphone (Realtek High Defini"
|
| +std::string ConvertToWinXPDeviceId(const std::string& device_id);
|
| +
|
| +} // namespace media
|
| +
|
| #endif // MEDIA_AUDIO_WIN_DEVICE_ENUMERATION_WIN_H_
|
|
|
|
|