| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void PlayNotification(const int32_t id, | 138 void PlayNotification(const int32_t id, |
| 139 const uint32_t durationMs); | 139 const uint32_t durationMs); |
| 140 | 140 |
| 141 void RecordNotification(const int32_t id, | 141 void RecordNotification(const int32_t id, |
| 142 const uint32_t durationMs); | 142 const uint32_t durationMs); |
| 143 | 143 |
| 144 void PlayFileEnded(const int32_t id); | 144 void PlayFileEnded(const int32_t id); |
| 145 | 145 |
| 146 void RecordFileEnded(const int32_t id); | 146 void RecordFileEnded(const int32_t id); |
| 147 | 147 |
| 148 #if WEBRTC_VOICE_ENGINE_TYPING_DETECTION | |
| 149 // Typing detection | |
| 150 int TimeSinceLastTyping(int &seconds); | |
| 151 int SetTypingDetectionParameters(int timeWindow, | |
| 152 int costPerTyping, | |
| 153 int reportingThreshold, | |
| 154 int penaltyDecay, | |
| 155 int typeEventDelay); | |
| 156 #endif | |
| 157 | |
| 158 // Virtual to allow mocking. | 148 // Virtual to allow mocking. |
| 159 virtual void EnableStereoChannelSwapping(bool enable); | 149 virtual void EnableStereoChannelSwapping(bool enable); |
| 160 bool IsStereoChannelSwappingEnabled(); | 150 bool IsStereoChannelSwappingEnabled(); |
| 161 | 151 |
| 162 protected: | 152 protected: |
| 163 #if WEBRTC_VOICE_ENGINE_TYPING_DETECTION | 153 #if WEBRTC_VOICE_ENGINE_TYPING_DETECTION |
| 164 TransmitMixer() : _monitorModule(this) {} | 154 TransmitMixer() : _monitorModule(this) {} |
| 165 #else | 155 #else |
| 166 TransmitMixer() = default; | 156 TransmitMixer() = default; |
| 167 #endif | 157 #endif |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 int _instanceId = 0; | 213 int _instanceId = 0; |
| 224 bool _mixFileWithMicrophone = false; | 214 bool _mixFileWithMicrophone = false; |
| 225 uint32_t _captureLevel = 0; | 215 uint32_t _captureLevel = 0; |
| 226 bool stereo_codec_ = false; | 216 bool stereo_codec_ = false; |
| 227 bool swap_stereo_channels_ = false; | 217 bool swap_stereo_channels_ = false; |
| 228 }; | 218 }; |
| 229 } // namespace voe | 219 } // namespace voe |
| 230 } // namespace webrtc | 220 } // namespace webrtc |
| 231 | 221 |
| 232 #endif // WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H | 222 #endif // WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H |
| OLD | NEW |