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 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 private: | 139 private: |
140 int32_t GetDevicesInfo(const int32_t function, | 140 int32_t GetDevicesInfo(const int32_t function, |
141 const bool playback, | 141 const bool playback, |
142 const int32_t enumDeviceNo = 0, | 142 const int32_t enumDeviceNo = 0, |
143 char* enumDeviceName = NULL, | 143 char* enumDeviceName = NULL, |
144 const int32_t ednLen = 0) const; | 144 const int32_t ednLen = 0) const; |
145 int32_t ErrorRecovery(int32_t error, snd_pcm_t* deviceHandle); | 145 int32_t ErrorRecovery(int32_t error, snd_pcm_t* deviceHandle); |
146 | 146 |
147 bool KeyPressed() const; | 147 bool KeyPressed() const; |
148 | 148 |
149 void Lock() EXCLUSIVE_LOCK_FUNCTION(_critSect) { _critSect.Enter(); }; | 149 void Lock() RTC_EXCLUSIVE_LOCK_FUNCTION(_critSect) { _critSect.Enter(); }; |
150 void UnLock() UNLOCK_FUNCTION(_critSect) { _critSect.Leave(); }; | 150 void UnLock() RTC_UNLOCK_FUNCTION(_critSect) { _critSect.Leave(); }; |
151 | 151 |
152 inline int32_t InputSanityCheckAfterUnlockedPeriod() const; | 152 inline int32_t InputSanityCheckAfterUnlockedPeriod() const; |
153 inline int32_t OutputSanityCheckAfterUnlockedPeriod() const; | 153 inline int32_t OutputSanityCheckAfterUnlockedPeriod() const; |
154 | 154 |
155 static bool RecThreadFunc(void*); | 155 static bool RecThreadFunc(void*); |
156 static bool PlayThreadFunc(void*); | 156 static bool PlayThreadFunc(void*); |
157 bool RecThreadProcess(); | 157 bool RecThreadProcess(); |
158 bool PlayThreadProcess(); | 158 bool PlayThreadProcess(); |
159 | 159 |
160 AudioDeviceBuffer* _ptrAudioBuffer; | 160 AudioDeviceBuffer* _ptrAudioBuffer; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 char _oldKeyState[32]; | 214 char _oldKeyState[32]; |
215 #if defined(USE_X11) | 215 #if defined(USE_X11) |
216 Display* _XDisplay; | 216 Display* _XDisplay; |
217 #endif | 217 #endif |
218 }; | 218 }; |
219 | 219 |
220 } | 220 } |
221 | 221 |
222 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_DEVICE_ALSA_LINUX_H_ | 222 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_DEVICE_ALSA_LINUX_H_ |
OLD | NEW |