X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fwebrtc%2Fvoice_engine%2Ftransmit_mixer.h;h=58bc73de2827892be4a8c77f7587d008580792d5;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=dc46cf702b612243a88d3aeb8cb5c89ceef0c644;hpb=d1e23c6ec4202b125fc446349b2230d4cd978d86;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/webrtc/voice_engine/transmit_mixer.h b/src/third_party/webrtc/voice_engine/transmit_mixer.h index dc46cf7..58bc73d 100644 --- a/src/third_party/webrtc/voice_engine/transmit_mixer.h +++ b/src/third_party/webrtc/voice_engine/transmit_mixer.h @@ -13,6 +13,7 @@ #include "webrtc/common_audio/resampler/include/push_resampler.h" #include "webrtc/common_types.h" +#include "webrtc/modules/audio_processing/typing_detection.h" #include "webrtc/modules/interface/module_common_types.h" #include "webrtc/modules/utility/interface/file_player.h" #include "webrtc/modules/utility/interface/file_recorder.h" @@ -183,10 +184,11 @@ private: int32_t MixOrReplaceAudioWithFile( int mixingFrequency); - void ProcessAudio(int delay_ms, int clock_drift, int current_mic_level); + void ProcessAudio(int delay_ms, int clock_drift, int current_mic_level, + bool key_pressed); #ifdef WEBRTC_VOICE_ENGINE_TYPING_DETECTION - int TypingDetection(bool keyPressed); + void TypingDetection(bool keyPressed); #endif // uses @@ -215,19 +217,9 @@ private: CriticalSectionWrapper& _callbackCritSect; #ifdef WEBRTC_VOICE_ENGINE_TYPING_DETECTION - int32_t _timeActive; - int32_t _timeSinceLastTyping; - int32_t _penaltyCounter; + webrtc::TypingDetection _typingDetection; bool _typingNoiseWarningPending; bool _typingNoiseDetected; - - // Tunable treshold values - int _timeWindow; // nr of10ms slots accepted to count as a hit. - int _costPerTyping; // Penalty added for a typing + activity coincide. - int _reportingThreshold; // Threshold for _penaltyCounter. - int _penaltyDecay; // How much we reduce _penaltyCounter every 10 ms. - int _typeEventDelay; // How old typing events we allow - #endif bool _saturationWarning;