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

Unified Diff: webrtc/modules/audio_processing/vad/vad_audio_proc.h

Issue 1181933002: Pull the Voice Activity Detector out from the AGC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove unused files from isolate 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/vad_audio_proc.h
diff --git a/webrtc/modules/audio_processing/agc/agc_audio_proc.h b/webrtc/modules/audio_processing/vad/vad_audio_proc.h
similarity index 87%
rename from webrtc/modules/audio_processing/agc/agc_audio_proc.h
rename to webrtc/modules/audio_processing/vad/vad_audio_proc.h
index 8c8fc315529dfffc00158659b90c21264cbb657b..0cb3ca6529b268a451db02e49bd51db2adcd6861 100644
--- a/webrtc/modules/audio_processing/agc/agc_audio_proc.h
+++ b/webrtc/modules/audio_processing/vad/vad_audio_proc.h
@@ -8,11 +8,11 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC_AGC_AUDIO_PROC_H_
-#define WEBRTC_MODULES_AUDIO_PROCESSING_AGC_AGC_AUDIO_PROC_H_
+#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_AUDIO_PROC_H_
+#define WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_AUDIO_PROC_H_
#include "webrtc/base/scoped_ptr.h"
-#include "webrtc/modules/audio_processing/agc/common.h"
+#include "webrtc/modules/audio_processing/vad/common.h"
#include "webrtc/typedefs.h"
namespace webrtc {
@@ -20,14 +20,14 @@ namespace webrtc {
class AudioFrame;
class PoleZeroFilter;
-class AgcAudioProc {
+class VadAudioProc {
public:
// Forward declare iSAC structs.
struct PitchAnalysisStruct;
struct PreFiltBankstr;
- AgcAudioProc();
- ~AgcAudioProc();
+ VadAudioProc();
+ ~VadAudioProc();
int ExtractFeatures(const int16_t* audio_frame,
int length,
@@ -55,7 +55,8 @@ class AgcAudioProc {
static const int kNum10msSubframes = 3;
static const int kNumSubframeSamples = kSampleRateHz / 100;
- static const int kNumSamplesToProcess = kNum10msSubframes *
+ static const int kNumSamplesToProcess =
+ kNum10msSubframes *
kNumSubframeSamples; // Samples in 30 ms @ given sampling rate.
static const int kBufferLength = kNumPastSignalSamples + kNumSamplesToProcess;
static const int kIpLength = kDftSize >> 1;
@@ -80,4 +81,4 @@ class AgcAudioProc {
} // namespace webrtc
-#endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_AGC_AUDIO_PROC_H_
+#endif // WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_AUDIO_PROC_H_
« no previous file with comments | « webrtc/modules/audio_processing/vad/standalone_vad_unittest.cc ('k') | webrtc/modules/audio_processing/vad/vad_audio_proc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698