| 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 #include <assert.h> | 11 #include <assert.h> |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" |
| 14 | 14 |
| 15 #include "webrtc/modules/audio_device/audio_device_config.h" | 15 #include "webrtc/modules/audio_device/audio_device_config.h" |
| 16 #include "webrtc/modules/audio_device/linux/audio_device_pulse_linux.h" | 16 #include "webrtc/modules/audio_device/linux/audio_device_pulse_linux.h" |
| 17 | 17 |
| 18 #include "webrtc/system_wrappers/interface/event_wrapper.h" | 18 #include "webrtc/system_wrappers/include/event_wrapper.h" |
| 19 #include "webrtc/system_wrappers/interface/trace.h" | 19 #include "webrtc/system_wrappers/include/trace.h" |
| 20 | 20 |
| 21 webrtc_adm_linux_pulse::PulseAudioSymbolTable PaSymbolTable; | 21 webrtc_adm_linux_pulse::PulseAudioSymbolTable PaSymbolTable; |
| 22 | 22 |
| 23 // Accesses Pulse functions through our late-binding symbol table instead of | 23 // Accesses Pulse functions through our late-binding symbol table instead of |
| 24 // directly. This way we don't have to link to libpulse, which means our binary | 24 // directly. This way we don't have to link to libpulse, which means our binary |
| 25 // will work on systems that don't have it. | 25 // will work on systems that don't have it. |
| 26 #define LATE(sym) \ | 26 #define LATE(sym) \ |
| 27 LATESYM_GET(webrtc_adm_linux_pulse::PulseAudioSymbolTable, &PaSymbolTable, sym
) | 27 LATESYM_GET(webrtc_adm_linux_pulse::PulseAudioSymbolTable, &PaSymbolTable, sym
) |
| 28 | 28 |
| 29 namespace webrtc | 29 namespace webrtc |
| (...skipping 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3013 | 3013 |
| 3014 // A bit change in keymap means a key is pressed | 3014 // A bit change in keymap means a key is pressed |
| 3015 for (i = 0; i < sizeof(szKey); i++) | 3015 for (i = 0; i < sizeof(szKey); i++) |
| 3016 state |= (szKey[i] ^ _oldKeyState[i]) & szKey[i]; | 3016 state |= (szKey[i] ^ _oldKeyState[i]) & szKey[i]; |
| 3017 | 3017 |
| 3018 // Save old state | 3018 // Save old state |
| 3019 memcpy((char*)_oldKeyState, (char*)szKey, sizeof(_oldKeyState)); | 3019 memcpy((char*)_oldKeyState, (char*)szKey, sizeof(_oldKeyState)); |
| 3020 return (state != 0); | 3020 return (state != 0); |
| 3021 } | 3021 } |
| 3022 } | 3022 } |
| OLD | NEW |