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_VOICE_ENGINE_TRANSMIT_MIXER_H | 11 #ifndef WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H |
12 #define WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H | 12 #define WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H |
13 | 13 |
| 14 #include "webrtc/base/criticalsection.h" |
14 #include "webrtc/base/scoped_ptr.h" | 15 #include "webrtc/base/scoped_ptr.h" |
15 #include "webrtc/common_audio/resampler/include/push_resampler.h" | 16 #include "webrtc/common_audio/resampler/include/push_resampler.h" |
16 #include "webrtc/common_types.h" | 17 #include "webrtc/common_types.h" |
17 #include "webrtc/modules/audio_processing/typing_detection.h" | 18 #include "webrtc/modules/audio_processing/typing_detection.h" |
18 #include "webrtc/modules/include/module_common_types.h" | 19 #include "webrtc/modules/include/module_common_types.h" |
19 #include "webrtc/modules/utility/include/file_player.h" | 20 #include "webrtc/modules/utility/include/file_player.h" |
20 #include "webrtc/modules/utility/include/file_recorder.h" | 21 #include "webrtc/modules/utility/include/file_recorder.h" |
21 #include "webrtc/voice_engine/include/voe_base.h" | 22 #include "webrtc/voice_engine/include/voe_base.h" |
22 #include "webrtc/voice_engine/level_indicator.h" | 23 #include "webrtc/voice_engine/level_indicator.h" |
23 #include "webrtc/voice_engine/monitor_module.h" | 24 #include "webrtc/voice_engine/monitor_module.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 FileRecorder* _fileRecorderPtr; | 204 FileRecorder* _fileRecorderPtr; |
204 FileRecorder* _fileCallRecorderPtr; | 205 FileRecorder* _fileCallRecorderPtr; |
205 int _filePlayerId; | 206 int _filePlayerId; |
206 int _fileRecorderId; | 207 int _fileRecorderId; |
207 int _fileCallRecorderId; | 208 int _fileCallRecorderId; |
208 bool _filePlaying; | 209 bool _filePlaying; |
209 bool _fileRecording; | 210 bool _fileRecording; |
210 bool _fileCallRecording; | 211 bool _fileCallRecording; |
211 voe::AudioLevel _audioLevel; | 212 voe::AudioLevel _audioLevel; |
212 // protect file instances and their variables in MixedParticipants() | 213 // protect file instances and their variables in MixedParticipants() |
213 CriticalSectionWrapper& _critSect; | 214 rtc::CriticalSection _critSect; |
214 CriticalSectionWrapper& _callbackCritSect; | 215 rtc::CriticalSection _callbackCritSect; |
215 | 216 |
216 #ifdef WEBRTC_VOICE_ENGINE_TYPING_DETECTION | 217 #ifdef WEBRTC_VOICE_ENGINE_TYPING_DETECTION |
217 webrtc::TypingDetection _typingDetection; | 218 webrtc::TypingDetection _typingDetection; |
218 bool _typingNoiseWarningPending; | 219 bool _typingNoiseWarningPending; |
219 bool _typingNoiseDetected; | 220 bool _typingNoiseDetected; |
220 #endif | 221 #endif |
221 bool _saturationWarning; | 222 bool _saturationWarning; |
222 | 223 |
223 int _instanceId; | 224 int _instanceId; |
224 bool _mixFileWithMicrophone; | 225 bool _mixFileWithMicrophone; |
225 uint32_t _captureLevel; | 226 uint32_t _captureLevel; |
226 VoEMediaProcess* external_postproc_ptr_; | 227 VoEMediaProcess* external_postproc_ptr_; |
227 VoEMediaProcess* external_preproc_ptr_; | 228 VoEMediaProcess* external_preproc_ptr_; |
228 bool _mute; | 229 bool _mute; |
229 int32_t _remainingMuteMicTimeMs; | 230 int32_t _remainingMuteMicTimeMs; |
230 bool stereo_codec_; | 231 bool stereo_codec_; |
231 bool swap_stereo_channels_; | 232 bool swap_stereo_channels_; |
232 }; | 233 }; |
233 | 234 |
234 } // namespace voe | 235 } // namespace voe |
235 | 236 |
236 } // namespace webrtc | 237 } // namespace webrtc |
237 | 238 |
238 #endif // WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H | 239 #endif // WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H |
OLD | NEW |