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

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

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/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 e5eb39017098e9208e31f7a16c83985253213c68..6cf3937f79f6e290af482625665ebe8fbbb23179 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_

Powered by Google App Engine
This is Rietveld 408576698