VAD changes ported to ACM2.

This CL ports the relevant parts of  https://code.google.com/p/webrtc/source/detail?r=4625 to ACM2.

BUG=
R=tina.legrand@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2264004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4804 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
turaj@webrtc.org
2013-09-20 16:38:26 +00:00
parent 362a55e7b0
commit 10e6cc7e23
4 changed files with 79 additions and 85 deletions

View File

@ -494,8 +494,8 @@ int16_t ACMGenericCodec::ResetEncoderSafe() {
// Set DTX/VAD.
int status = SetVADSafe(&enable_dtx, &enable_vad, &mode);
vad_enabled_ = enable_dtx;
dtx_enabled_ = enable_vad;
dtx_enabled_ = enable_dtx;
vad_enabled_ = enable_vad;
vad_mode_ = mode;
return status;
}