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/criticalsection.h" | 27 #include "webrtc/rtc_base/criticalsection.h" |
28 #include "webrtc/base/scoped_ref_ptr.h" | 28 #include "webrtc/rtc_base/scoped_ref_ptr.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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 uint16_t _newMicLevel; | 365 uint16_t _newMicLevel; |
366 | 366 |
367 mutable char _str[512]; | 367 mutable char _str[512]; |
368 }; | 368 }; |
369 | 369 |
370 #endif // #if (_MSC_VER >= 1400) | 370 #endif // #if (_MSC_VER >= 1400) |
371 | 371 |
372 } // namespace webrtc | 372 } // namespace webrtc |
373 | 373 |
374 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ | 374 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ |
OLD | NEW |