mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 00:57:49 +01:00

See https://cs.chromium.org/chromium/src/media/audio/win/core_audio_util_win.h?q=coreaudio&sq=package:chromium&g=0&l=34 for details. Bug: webrtc:9265 Change-Id: I0fd26620d94a81ccced68d81021c39723a5be2cb Reviewed-on: https://webrtc-review.googlesource.com/76900 Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Henrik Andreassson <henrika@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23298}
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef MODULES_AUDIO_DEVICE_AUDIO_DEVICE_NAME_H_
|
|
#define MODULES_AUDIO_DEVICE_AUDIO_DEVICE_NAME_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace webrtc {
|
|
|
|
struct AudioDeviceName {
|
|
// Unique ID of the generic default device.
|
|
static const char kDefaultDeviceId[];
|
|
|
|
// Unique ID of the generic default communications device.
|
|
static const char kDefaultCommunicationsDeviceId[];
|
|
|
|
AudioDeviceName() = default;
|
|
AudioDeviceName(const std::string device_name, const std::string unique_id);
|
|
|
|
~AudioDeviceName() = default;
|
|
|
|
// Support copy and move.
|
|
AudioDeviceName(const AudioDeviceName& other) = default;
|
|
AudioDeviceName(AudioDeviceName&&) = default;
|
|
AudioDeviceName& operator=(const AudioDeviceName&) = default;
|
|
AudioDeviceName& operator=(AudioDeviceName&&) = default;
|
|
|
|
bool IsValid();
|
|
|
|
std::string device_name; // Friendly name of the device.
|
|
std::string unique_id; // Unique identifier for the device.
|
|
};
|
|
|
|
typedef std::vector<AudioDeviceName> AudioDeviceNames;
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // MODULES_AUDIO_DEVICE_AUDIO_DEVICE_NAME_H_
|