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

Unified Diff: webrtc/modules/audio_processing/vad/standalone_vad.cc

Issue 1212543002: Pull the Voice Activity Detector out from the AGC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 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
Index: webrtc/modules/audio_processing/vad/standalone_vad.cc
diff --git a/webrtc/modules/audio_processing/agc/standalone_vad.cc b/webrtc/modules/audio_processing/vad/standalone_vad.cc
similarity index 93%
rename from webrtc/modules/audio_processing/agc/standalone_vad.cc
rename to webrtc/modules/audio_processing/vad/standalone_vad.cc
index e8593254543c346f93010c56181e809114879d2f..783785184dbd017a7f33f41f4f7973df25a671d8 100644
--- a/webrtc/modules/audio_processing/agc/standalone_vad.cc
+++ b/webrtc/modules/audio_processing/vad/standalone_vad.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/modules/audio_processing/agc/standalone_vad.h"
+#include "webrtc/modules/audio_processing/vad/standalone_vad.h"
#include <assert.h>
@@ -21,10 +21,8 @@ namespace webrtc {
static const int kDefaultStandaloneVadMode = 3;
StandaloneVad::StandaloneVad(VadInst* vad)
- : vad_(vad),
- buffer_(),
- index_(0),
- mode_(kDefaultStandaloneVadMode) {}
+ : vad_(vad), buffer_(), index_(0), mode_(kDefaultStandaloneVadMode) {
+}
StandaloneVad::~StandaloneVad() {
WebRtcVad_Free(vad_);
@@ -93,4 +91,3 @@ int StandaloneVad::set_mode(int mode) {
}
} // namespace webrtc
-

Powered by Google App Engine
This is Rietveld 408576698