| 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 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 // If there is already a warning pending, do not change the state. | 1058 // If there is already a warning pending, do not change the state. |
| 1059 // Otherwise set a warning pending if last callback was for noise detected. | 1059 // Otherwise set a warning pending if last callback was for noise detected. |
| 1060 if (!_typingNoiseWarningPending && _typingNoiseDetected) { | 1060 if (!_typingNoiseWarningPending && _typingNoiseDetected) { |
| 1061 _typingNoiseWarningPending = true; | 1061 _typingNoiseWarningPending = true; |
| 1062 _typingNoiseDetected = false; | 1062 _typingNoiseDetected = false; |
| 1063 } | 1063 } |
| 1064 } | 1064 } |
| 1065 } | 1065 } |
| 1066 #endif | 1066 #endif |
| 1067 | 1067 |
| 1068 #if WEBRTC_VOICE_ENGINE_TYPING_DETECTION | |
| 1069 int TransmitMixer::TimeSinceLastTyping(int &seconds) | |
| 1070 { | |
| 1071 // We check in VoEAudioProcessingImpl that this is only called when | |
| 1072 // typing detection is active. | |
| 1073 seconds = _typingDetection.TimeSinceLastDetectionInSeconds(); | |
| 1074 return 0; | |
| 1075 } | |
| 1076 #endif | |
| 1077 | |
| 1078 #if WEBRTC_VOICE_ENGINE_TYPING_DETECTION | |
| 1079 int TransmitMixer::SetTypingDetectionParameters(int timeWindow, | |
| 1080 int costPerTyping, | |
| 1081 int reportingThreshold, | |
| 1082 int penaltyDecay, | |
| 1083 int typeEventDelay) | |
| 1084 { | |
| 1085 _typingDetection.SetParameters(timeWindow, | |
| 1086 costPerTyping, | |
| 1087 reportingThreshold, | |
| 1088 penaltyDecay, | |
| 1089 typeEventDelay, | |
| 1090 0); | |
| 1091 return 0; | |
| 1092 } | |
| 1093 #endif | |
| 1094 | |
| 1095 void TransmitMixer::EnableStereoChannelSwapping(bool enable) { | 1068 void TransmitMixer::EnableStereoChannelSwapping(bool enable) { |
| 1096 swap_stereo_channels_ = enable; | 1069 swap_stereo_channels_ = enable; |
| 1097 } | 1070 } |
| 1098 | 1071 |
| 1099 bool TransmitMixer::IsStereoChannelSwappingEnabled() { | 1072 bool TransmitMixer::IsStereoChannelSwappingEnabled() { |
| 1100 return swap_stereo_channels_; | 1073 return swap_stereo_channels_; |
| 1101 } | 1074 } |
| 1102 | 1075 |
| 1103 } // namespace voe | 1076 } // namespace voe |
| 1104 } // namespace webrtc | 1077 } // namespace webrtc |
| OLD | NEW |