mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-16 15:20:42 +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}
28 lines
967 B
C++
28 lines
967 B
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.
|
|
*/
|
|
|
|
#include "modules/audio_device/audio_device_name.h"
|
|
|
|
#include <utility>
|
|
|
|
namespace webrtc {
|
|
|
|
const char AudioDeviceName::kDefaultDeviceId[] = "default";
|
|
const char AudioDeviceName::kDefaultCommunicationsDeviceId[] = "communications";
|
|
|
|
AudioDeviceName::AudioDeviceName(const std::string device_name,
|
|
const std::string unique_id)
|
|
: device_name(std::move(device_name)), unique_id(std::move(unique_id)) {}
|
|
|
|
bool AudioDeviceName::IsValid() {
|
|
return !device_name.empty() && !unique_id.empty();
|
|
}
|
|
|
|
} // namespace webrtc
|