Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: webrtc/modules/audio_device/win/audio_device_wave_win.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "webrtc/modules/audio_device/audio_device_config.h" 11 #include "webrtc/modules/audio_device/audio_device_config.h"
12 #include "webrtc/modules/audio_device/win/audio_device_wave_win.h" 12 #include "webrtc/modules/audio_device/win/audio_device_wave_win.h"
13 13
14 #include "webrtc/system_wrappers/interface/event_wrapper.h" 14 #include "webrtc/system_wrappers/include/event_wrapper.h"
15 #include "webrtc/system_wrappers/interface/tick_util.h" 15 #include "webrtc/system_wrappers/include/tick_util.h"
16 #include "webrtc/system_wrappers/interface/trace.h" 16 #include "webrtc/system_wrappers/include/trace.h"
17 17
18 #include <windows.h> 18 #include <windows.h>
19 #include <objbase.h> // CoTaskMemAlloc, CoTaskMemFree 19 #include <objbase.h> // CoTaskMemAlloc, CoTaskMemFree
20 #include <strsafe.h> // StringCchCopy(), StringCchCat(), StringCchPrintf() 20 #include <strsafe.h> // StringCchCopy(), StringCchCat(), StringCchPrintf()
21 #include <assert.h> 21 #include <assert.h>
22 22
23 // Avoids the need of Windows 7 SDK 23 // Avoids the need of Windows 7 SDK
24 #ifndef WAVE_MAPPED_DEFAULT_COMMUNICATION_DEVICE 24 #ifndef WAVE_MAPPED_DEFAULT_COMMUNICATION_DEVICE
25 #define WAVE_MAPPED_DEFAULT_COMMUNICATION_DEVICE 0x0010 25 #define WAVE_MAPPED_DEFAULT_COMMUNICATION_DEVICE 0x0010
26 #endif 26 #endif
(...skipping 3710 matching lines...) Expand 10 before | Expand all | Expand 10 after
3737 bool AudioDeviceWindowsWave::KeyPressed() const{ 3737 bool AudioDeviceWindowsWave::KeyPressed() const{
3738 3738
3739 int key_down = 0; 3739 int key_down = 0;
3740 for (int key = VK_SPACE; key < VK_NUMLOCK; key++) { 3740 for (int key = VK_SPACE; key < VK_NUMLOCK; key++) {
3741 short res = GetAsyncKeyState(key); 3741 short res = GetAsyncKeyState(key);
3742 key_down |= res & 0x1; // Get the LSB 3742 key_down |= res & 0x1; // Get the LSB
3743 } 3743 }
3744 return (key_down > 0); 3744 return (key_down > 0);
3745 } 3745 }
3746 } // namespace webrtc 3746 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/win/audio_device_wave_win.h ('k') | webrtc/modules/audio_device/win/audio_mixer_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698