| 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_PULSE_LINUX_H | 11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_PULSE_LINUX_H |
| 12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_PULSE_LINUX_H | 12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_PULSE_LINUX_H |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 | 15 |
| 16 #include "webrtc/base/criticalsection.h" | |
| 17 #include "webrtc/base/platform_thread.h" | |
| 18 #include "webrtc/base/thread_checker.h" | |
| 19 #include "webrtc/modules/audio_device/audio_device_generic.h" | 16 #include "webrtc/modules/audio_device/audio_device_generic.h" |
| 20 #include "webrtc/modules/audio_device/linux/audio_mixer_manager_pulse_linux.h" | 17 #include "webrtc/modules/audio_device/linux/audio_mixer_manager_pulse_linux.h" |
| 18 #include "webrtc/rtc_base/criticalsection.h" |
| 19 #include "webrtc/rtc_base/platform_thread.h" |
| 20 #include "webrtc/rtc_base/thread_checker.h" |
| 21 | 21 |
| 22 #include <X11/Xlib.h> | 22 #include <X11/Xlib.h> |
| 23 #include <pulse/pulseaudio.h> | 23 #include <pulse/pulseaudio.h> |
| 24 | 24 |
| 25 // We define this flag if it's missing from our headers, because we want to be | 25 // We define this flag if it's missing from our headers, because we want to be |
| 26 // able to compile against old headers but still use PA_STREAM_ADJUST_LATENCY | 26 // able to compile against old headers but still use PA_STREAM_ADJUST_LATENCY |
| 27 // if run against a recent version of the library. | 27 // if run against a recent version of the library. |
| 28 #ifndef PA_STREAM_ADJUST_LATENCY | 28 #ifndef PA_STREAM_ADJUST_LATENCY |
| 29 #define PA_STREAM_ADJUST_LATENCY 0x2000U | 29 #define PA_STREAM_ADJUST_LATENCY 0x2000U |
| 30 #endif | 30 #endif |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 pa_buffer_attr _playBufferAttr; | 369 pa_buffer_attr _playBufferAttr; |
| 370 pa_buffer_attr _recBufferAttr; | 370 pa_buffer_attr _recBufferAttr; |
| 371 | 371 |
| 372 char _oldKeyState[32]; | 372 char _oldKeyState[32]; |
| 373 Display* _XDisplay; | 373 Display* _XDisplay; |
| 374 }; | 374 }; |
| 375 | 375 |
| 376 } | 376 } |
| 377 | 377 |
| 378 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_DEVICE_PULSE_LINUX_H_ | 378 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_DEVICE_PULSE_LINUX_H_ |
| OLD | NEW |