| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ | 11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ |
| 12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ | 12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ |
| 13 | 13 |
| 14 #if (_MSC_VER >= 1400) // only include for VS 2005 and higher | 14 #if (_MSC_VER >= 1400) // only include for VS 2005 and higher |
| 15 | 15 |
| 16 #include "webrtc/modules/audio_device/audio_device_generic.h" | 16 #include "webrtc/modules/audio_device/audio_device_generic.h" |
| 17 | 17 |
| 18 #include <wmcodecdsp.h> // CLSID_CWMAudioAEC | 18 #include <wmcodecdsp.h> // CLSID_CWMAudioAEC |
| 19 // (must be before audioclient.h) | 19 // (must be before audioclient.h) |
| 20 #include <Audioclient.h> // WASAPI | 20 #include <Audioclient.h> // WASAPI |
| 21 #include <Audiopolicy.h> | 21 #include <Audiopolicy.h> |
| 22 #include <Mmdeviceapi.h> // MMDevice | 22 #include <Mmdeviceapi.h> // MMDevice |
| 23 #include <avrt.h> // Avrt | 23 #include <avrt.h> // Avrt |
| 24 #include <endpointvolume.h> | 24 #include <endpointvolume.h> |
| 25 #include <mediaobj.h> // IMediaObject | 25 #include <mediaobj.h> // IMediaObject |
| 26 | 26 |
| 27 #include "webrtc/base/scoped_ref_ptr.h" | 27 #include "webrtc/base/scoped_ref_ptr.h" |
| 28 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 28 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
| 29 | 29 |
| 30 // Use Multimedia Class Scheduler Service (MMCSS) to boost the thread priority | 30 // Use Multimedia Class Scheduler Service (MMCSS) to boost the thread priority |
| 31 #pragma comment( lib, "avrt.lib" ) | 31 #pragma comment( lib, "avrt.lib" ) |
| 32 // AVRT function pointers | 32 // AVRT function pointers |
| 33 typedef BOOL (WINAPI *PAvRevertMmThreadCharacteristics)(HANDLE); | 33 typedef BOOL (WINAPI *PAvRevertMmThreadCharacteristics)(HANDLE); |
| 34 typedef HANDLE (WINAPI *PAvSetMmThreadCharacteristicsA)(LPCSTR, LPDWORD); | 34 typedef HANDLE (WINAPI *PAvSetMmThreadCharacteristicsA)(LPCSTR, LPDWORD); |
| 35 typedef BOOL (WINAPI *PAvSetMmThreadPriority)(HANDLE, AVRT_PRIORITY); | 35 typedef BOOL (WINAPI *PAvSetMmThreadPriority)(HANDLE, AVRT_PRIORITY); |
| 36 | 36 |
| 37 namespace webrtc { | 37 namespace webrtc { |
| 38 | 38 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 uint16_t _newMicLevel; | 370 uint16_t _newMicLevel; |
| 371 | 371 |
| 372 mutable char _str[512]; | 372 mutable char _str[512]; |
| 373 }; | 373 }; |
| 374 | 374 |
| 375 #endif // #if (_MSC_VER >= 1400) | 375 #endif // #if (_MSC_VER >= 1400) |
| 376 | 376 |
| 377 } // namespace webrtc | 377 } // namespace webrtc |
| 378 | 378 |
| 379 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ | 379 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ |
| OLD | NEW |