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

Unified Diff: webrtc/modules/audio_processing/vad/vad_circular_buffer.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_circular_buffer.h
diff --git a/webrtc/modules/audio_processing/agc/circular_buffer.h b/webrtc/modules/audio_processing/vad/vad_circular_buffer.h
similarity index 86%
rename from webrtc/modules/audio_processing/agc/circular_buffer.h
rename to webrtc/modules/audio_processing/vad/vad_circular_buffer.h
index eee60977d1f51a45c47b25f54bfb6ad4b17aa735..5238f77257bf41b6ba8e11b128a1e36b95f86a6f 100644
--- a/webrtc/modules/audio_processing/agc/circular_buffer.h
+++ b/webrtc/modules/audio_processing/vad/vad_circular_buffer.h
@@ -8,8 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC_CIRCULAR_BUFFER_H_
-#define WEBRTC_MODULES_AUDIO_PROCESSING_AGC_CIRCULAR_BUFFER_H_
+#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_CIRCULAR_BUFFER_H_
+#define WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_CIRCULAR_BUFFER_H_
#include "webrtc/base/scoped_ptr.h"
@@ -21,10 +21,10 @@ namespace webrtc {
// It is used in class "PitchBasedActivity" to keep track of posterior
// probabilities in the past few seconds. The posterior probabilities are used
// to recursively update prior probabilities.
-class AgcCircularBuffer {
+class VadCircularBuffer {
public:
- static AgcCircularBuffer* Create(int buffer_size);
- ~AgcCircularBuffer();
+ static VadCircularBuffer* Create(int buffer_size);
+ ~VadCircularBuffer();
// If buffer is wrapped around.
bool is_full() const { return is_full_; }
@@ -44,7 +44,7 @@ class AgcCircularBuffer {
int RemoveTransient(int width_threshold, double val_threshold);
private:
- explicit AgcCircularBuffer(int buffer_size);
+ explicit VadCircularBuffer(int buffer_size);
// Get previous values. |index = 0| corresponds to the most recent
// insertion. |index = 1| is the one before the most recent insertion, and
// so on.
@@ -66,4 +66,4 @@ class AgcCircularBuffer {
};
} // namespace webrtc
-#endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_CIRCULAR_BUFFER_H_
+#endif // WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_CIRCULAR_BUFFER_H_

Powered by Google App Engine
This is Rietveld 408576698