1/* 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11#ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_WIN_H 12#define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_WIN_H 13 14#include "webrtc/modules/audio_device/audio_device_utility.h" 15#include "webrtc/modules/audio_device/include/audio_device.h" 16#include <windows.h> 17 18namespace webrtc 19{ 20class CriticalSectionWrapper; 21 22class AudioDeviceUtilityWindows : public AudioDeviceUtility 23{ 24public: 25 AudioDeviceUtilityWindows(const int32_t id); 26 ~AudioDeviceUtilityWindows(); 27 28 virtual int32_t Init(); 29 30private: 31 BOOL GetOSDisplayString(LPTSTR pszOS); 32 33private: 34 CriticalSectionWrapper& _critSect; 35 int32_t _id; 36 AudioDeviceModule::ErrorCode _lastError; 37}; 38 39} // namespace webrtc 40 41#endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_WIN_H 42