/* * Copyright (c) 2017 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 "media/engine/adm_helpers.h" #include "api/audio/audio_device.h" #include "rtc_base/checks.h" #include "rtc_base/logging.h" namespace webrtc { namespace adm_helpers { // On Windows Vista and newer, Microsoft introduced the concept of "Default // Communications Device". This means that there are two types of default // devices (old Wave Audio style default and Default Communications Device). // // On Windows systems which only support Wave Audio style default, uses either // -1 or 0 to select the default device. // // Using a #define for AUDIO_DEVICE since we will call *different* versions of // the ADM functions, depending on the ID type. #if defined(WEBRTC_WIN) #define AUDIO_DEVICE_ID … #else #define AUDIO_DEVICE_ID … #endif // defined(WEBRTC_WIN) void Init(AudioDeviceModule* adm) { … } } // namespace adm_helpers } // namespace webrtc