| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 bool SpeakerIsInitialized() const override; | 150 bool SpeakerIsInitialized() const override; |
| 151 int32_t InitMicrophone() override; | 151 int32_t InitMicrophone() override; |
| 152 bool MicrophoneIsInitialized() const override; | 152 bool MicrophoneIsInitialized() const override; |
| 153 | 153 |
| 154 // Speaker volume controls | 154 // Speaker volume controls |
| 155 int32_t SpeakerVolumeIsAvailable(bool& available) override; | 155 int32_t SpeakerVolumeIsAvailable(bool& available) override; |
| 156 int32_t SetSpeakerVolume(uint32_t volume) override; | 156 int32_t SetSpeakerVolume(uint32_t volume) override; |
| 157 int32_t SpeakerVolume(uint32_t& volume) const override; | 157 int32_t SpeakerVolume(uint32_t& volume) const override; |
| 158 int32_t MaxSpeakerVolume(uint32_t& maxVolume) const override; | 158 int32_t MaxSpeakerVolume(uint32_t& maxVolume) const override; |
| 159 int32_t MinSpeakerVolume(uint32_t& minVolume) const override; | 159 int32_t MinSpeakerVolume(uint32_t& minVolume) const override; |
| 160 int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const override; | |
| 161 | 160 |
| 162 // Microphone volume controls | 161 // Microphone volume controls |
| 163 int32_t MicrophoneVolumeIsAvailable(bool& available) override; | 162 int32_t MicrophoneVolumeIsAvailable(bool& available) override; |
| 164 int32_t SetMicrophoneVolume(uint32_t volume) override; | 163 int32_t SetMicrophoneVolume(uint32_t volume) override; |
| 165 int32_t MicrophoneVolume(uint32_t& volume) const override; | 164 int32_t MicrophoneVolume(uint32_t& volume) const override; |
| 166 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const override; | 165 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const override; |
| 167 int32_t MinMicrophoneVolume(uint32_t& minVolume) const override; | 166 int32_t MinMicrophoneVolume(uint32_t& minVolume) const override; |
| 168 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const override; | |
| 169 | 167 |
| 170 // Speaker mute control | 168 // Speaker mute control |
| 171 int32_t SpeakerMuteIsAvailable(bool& available) override; | 169 int32_t SpeakerMuteIsAvailable(bool& available) override; |
| 172 int32_t SetSpeakerMute(bool enable) override; | 170 int32_t SetSpeakerMute(bool enable) override; |
| 173 int32_t SpeakerMute(bool& enabled) const override; | 171 int32_t SpeakerMute(bool& enabled) const override; |
| 174 | 172 |
| 175 // Microphone mute control | 173 // Microphone mute control |
| 176 int32_t MicrophoneMuteIsAvailable(bool& available) override; | 174 int32_t MicrophoneMuteIsAvailable(bool& available) override; |
| 177 int32_t SetMicrophoneMute(bool enable) override; | 175 int32_t SetMicrophoneMute(bool enable) override; |
| 178 int32_t MicrophoneMute(bool& enabled) const override; | 176 int32_t MicrophoneMute(bool& enabled) const override; |
| 179 | 177 |
| 180 // Microphone boost control | |
| 181 int32_t MicrophoneBoostIsAvailable(bool& available) override; | |
| 182 int32_t SetMicrophoneBoost(bool enable) override; | |
| 183 int32_t MicrophoneBoost(bool& enabled) const override; | |
| 184 | |
| 185 // Stereo support | 178 // Stereo support |
| 186 int32_t StereoPlayoutIsAvailable(bool& available) override; | 179 int32_t StereoPlayoutIsAvailable(bool& available) override; |
| 187 int32_t SetStereoPlayout(bool enable) override; | 180 int32_t SetStereoPlayout(bool enable) override; |
| 188 int32_t StereoPlayout(bool& enabled) const override; | 181 int32_t StereoPlayout(bool& enabled) const override; |
| 189 int32_t StereoRecordingIsAvailable(bool& available) override; | 182 int32_t StereoRecordingIsAvailable(bool& available) override; |
| 190 int32_t SetStereoRecording(bool enable) override; | 183 int32_t SetStereoRecording(bool enable) override; |
| 191 int32_t StereoRecording(bool& enabled) const override; | 184 int32_t StereoRecording(bool& enabled) const override; |
| 192 | 185 |
| 193 // Delay information and control | 186 // Delay information and control |
| 194 int32_t SetPlayoutBuffer(const AudioDeviceModule::BufferType type, | |
| 195 uint16_t sizeMS) override; | |
| 196 int32_t PlayoutBuffer(AudioDeviceModule::BufferType& type, | |
| 197 uint16_t& sizeMS) const override; | |
| 198 int32_t PlayoutDelay(uint16_t& delayMS) const override; | 187 int32_t PlayoutDelay(uint16_t& delayMS) const override; |
| 199 int32_t RecordingDelay(uint16_t& delayMS) const override; | 188 int32_t RecordingDelay(uint16_t& delayMS) const override; |
| 200 | 189 |
| 201 // CPU load | |
| 202 int32_t CPULoad(uint16_t& load) const override; | |
| 203 | |
| 204 bool PlayoutWarning() const override; | 190 bool PlayoutWarning() const override; |
| 205 bool PlayoutError() const override; | 191 bool PlayoutError() const override; |
| 206 bool RecordingWarning() const override; | 192 bool RecordingWarning() const override; |
| 207 bool RecordingError() const override; | 193 bool RecordingError() const override; |
| 208 void ClearPlayoutWarning() override; | 194 void ClearPlayoutWarning() override; |
| 209 void ClearPlayoutError() override; | 195 void ClearPlayoutError() override; |
| 210 void ClearRecordingWarning() override; | 196 void ClearRecordingWarning() override; |
| 211 void ClearRecordingError() override; | 197 void ClearRecordingError() override; |
| 212 | 198 |
| 213 void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) override; | 199 void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) override; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 274 |
| 289 uint16_t _inputDeviceIndex; | 275 uint16_t _inputDeviceIndex; |
| 290 uint16_t _outputDeviceIndex; | 276 uint16_t _outputDeviceIndex; |
| 291 bool _inputDeviceIsSpecified; | 277 bool _inputDeviceIsSpecified; |
| 292 bool _outputDeviceIsSpecified; | 278 bool _outputDeviceIsSpecified; |
| 293 | 279 |
| 294 int sample_rate_hz_; | 280 int sample_rate_hz_; |
| 295 uint8_t _recChannels; | 281 uint8_t _recChannels; |
| 296 uint8_t _playChannels; | 282 uint8_t _playChannels; |
| 297 | 283 |
| 298 AudioDeviceModule::BufferType _playBufType; | |
| 299 | |
| 300 // Stores thread ID in constructor. | 284 // Stores thread ID in constructor. |
| 301 // We can then use ThreadChecker::CalledOnValidThread() to ensure that | 285 // We can then use ThreadChecker::CalledOnValidThread() to ensure that |
| 302 // other methods are called from the same thread. | 286 // other methods are called from the same thread. |
| 303 // Currently only does RTC_DCHECK(thread_checker_.CalledOnValidThread()). | 287 // Currently only does RTC_DCHECK(thread_checker_.CalledOnValidThread()). |
| 304 rtc::ThreadChecker thread_checker_; | 288 rtc::ThreadChecker thread_checker_; |
| 305 | 289 |
| 306 bool _initialized; | 290 bool _initialized; |
| 307 bool _recording; | 291 bool _recording; |
| 308 bool _playing; | 292 bool _playing; |
| 309 bool _recIsInitialized; | 293 bool _recIsInitialized; |
| 310 bool _playIsInitialized; | 294 bool _playIsInitialized; |
| 311 bool _startRec; | 295 bool _startRec; |
| 312 bool _stopRec; | 296 bool _stopRec; |
| 313 bool _startPlay; | 297 bool _startPlay; |
| 314 bool _stopPlay; | 298 bool _stopPlay; |
| 315 bool _AGC; | 299 bool _AGC; |
| 316 bool update_speaker_volume_at_startup_; | 300 bool update_speaker_volume_at_startup_; |
| 317 | 301 |
| 318 uint16_t _playBufDelayFixed; // fixed playback delay | |
| 319 | |
| 320 uint32_t _sndCardPlayDelay; | 302 uint32_t _sndCardPlayDelay; |
| 321 uint32_t _sndCardRecDelay; | 303 uint32_t _sndCardRecDelay; |
| 322 | 304 |
| 323 int32_t _writeErrors; | 305 int32_t _writeErrors; |
| 324 uint16_t _playWarning; | 306 uint16_t _playWarning; |
| 325 uint16_t _playError; | 307 uint16_t _playError; |
| 326 uint16_t _recWarning; | 308 uint16_t _recWarning; |
| 327 uint16_t _recError; | 309 uint16_t _recError; |
| 328 | 310 |
| 329 uint16_t _deviceIndex; | 311 uint16_t _deviceIndex; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 pa_buffer_attr _playBufferAttr; | 344 pa_buffer_attr _playBufferAttr; |
| 363 pa_buffer_attr _recBufferAttr; | 345 pa_buffer_attr _recBufferAttr; |
| 364 | 346 |
| 365 char _oldKeyState[32]; | 347 char _oldKeyState[32]; |
| 366 Display* _XDisplay; | 348 Display* _XDisplay; |
| 367 }; | 349 }; |
| 368 | 350 |
| 369 } | 351 } |
| 370 | 352 |
| 371 #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 |