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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 bool RecordingWarning() const override; | 192 bool RecordingWarning() const override; |
193 bool RecordingError() const override; | 193 bool RecordingError() const override; |
194 void ClearPlayoutWarning() override; | 194 void ClearPlayoutWarning() override; |
195 void ClearPlayoutError() override; | 195 void ClearPlayoutError() override; |
196 void ClearRecordingWarning() override; | 196 void ClearRecordingWarning() override; |
197 void ClearRecordingError() override; | 197 void ClearRecordingError() override; |
198 | 198 |
199 void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) override; | 199 void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) override; |
200 | 200 |
201 private: | 201 private: |
202 void Lock() EXCLUSIVE_LOCK_FUNCTION(_critSect) { | 202 void Lock() RTC_EXCLUSIVE_LOCK_FUNCTION(_critSect) { |
203 _critSect.Enter(); | 203 _critSect.Enter(); |
204 } | 204 } |
205 void UnLock() UNLOCK_FUNCTION(_critSect) { | 205 void UnLock() RTC_UNLOCK_FUNCTION(_critSect) { |
206 _critSect.Leave(); | 206 _critSect.Leave(); |
207 } | 207 } |
208 void WaitForOperationCompletion(pa_operation* paOperation) const; | 208 void WaitForOperationCompletion(pa_operation* paOperation) const; |
209 void WaitForSuccess(pa_operation* paOperation) const; | 209 void WaitForSuccess(pa_operation* paOperation) const; |
210 | 210 |
211 bool KeyPressed() const; | 211 bool KeyPressed() const; |
212 | 212 |
213 static void PaContextStateCallback(pa_context *c, void *pThis); | 213 static void PaContextStateCallback(pa_context *c, void *pThis); |
214 static void PaSinkInfoCallback(pa_context *c, const pa_sink_info *i, | 214 static void PaSinkInfoCallback(pa_context *c, const pa_sink_info *i, |
215 int eol, void *pThis); | 215 int eol, void *pThis); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 pa_buffer_attr _playBufferAttr; | 344 pa_buffer_attr _playBufferAttr; |
345 pa_buffer_attr _recBufferAttr; | 345 pa_buffer_attr _recBufferAttr; |
346 | 346 |
347 char _oldKeyState[32]; | 347 char _oldKeyState[32]; |
348 Display* _XDisplay; | 348 Display* _XDisplay; |
349 }; | 349 }; |
350 | 350 |
351 } | 351 } |
352 | 352 |
353 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_DEVICE_PULSE_LINUX_H_ | 353 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_DEVICE_PULSE_LINUX_H_ |
OLD | NEW |