Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: webrtc/voice_engine/transmit_mixer.cc

Issue 1722253002: - Clean up unused voice engine DTMF code. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@voe_dtmf_1
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/voice_engine/transmit_mixer.h ('k') | webrtc/voice_engine/voice_engine.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/transmit_mixer.cc
diff --git a/webrtc/voice_engine/transmit_mixer.cc b/webrtc/voice_engine/transmit_mixer.cc
index d6a5213217e3bfe92b36a3ddbf6b4f524f6ac0f3..0240389be14f8df7132f1315087036baa199a49f 100644
--- a/webrtc/voice_engine/transmit_mixer.cc
+++ b/webrtc/voice_engine/transmit_mixer.cc
@@ -205,7 +205,6 @@ TransmitMixer::TransmitMixer(uint32_t instanceId) :
external_postproc_ptr_(NULL),
external_preproc_ptr_(NULL),
_mute(false),
- _remainingMuteMicTimeMs(0),
stereo_codec_(false),
swap_stereo_channels_(false)
{
@@ -359,17 +358,6 @@ TransmitMixer::PrepareDemux(const void* audioSamples,
TypingDetection(keyPressed);
#endif
- // --- Mute during DTMF tone if direct feedback is enabled
- if (_remainingMuteMicTimeMs > 0)
- {
- AudioFrameOperations::Mute(_audioFrame);
- _remainingMuteMicTimeMs -= 10;
- if (_remainingMuteMicTimeMs < 0)
- {
- _remainingMuteMicTimeMs = 0;
- }
- }
-
// --- Mute signal
if (_mute)
{
@@ -477,15 +465,6 @@ uint32_t TransmitMixer::CaptureLevel() const
return _captureLevel;
}
-void
-TransmitMixer::UpdateMuteMicrophoneTime(uint32_t lengthMs)
-{
- WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, -1),
- "TransmitMixer::UpdateMuteMicrophoneTime(lengthMs=%d)",
- lengthMs);
- _remainingMuteMicTimeMs = lengthMs;
-}
-
int32_t
TransmitMixer::StopSend()
{
« no previous file with comments | « webrtc/voice_engine/transmit_mixer.h ('k') | webrtc/voice_engine/voice_engine.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698