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

Unified Diff: webrtc/modules/audio_processing/agc/legacy/gain_control.h

Issue 1998183002: Clang format on AGC legacy code. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « webrtc/modules/audio_processing/agc/legacy/digital_agc.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/agc/legacy/gain_control.h
diff --git a/webrtc/modules/audio_processing/agc/legacy/gain_control.h b/webrtc/modules/audio_processing/agc/legacy/gain_control.h
index db942fe5ec17def919a67a03184a7168639bf968..c3157500cf7744fde5e9270b764d71952b547199 100644
--- a/webrtc/modules/audio_processing/agc/legacy/gain_control.h
+++ b/webrtc/modules/audio_processing/agc/legacy/gain_control.h
@@ -14,39 +14,32 @@
#include "webrtc/typedefs.h"
// Errors
-#define AGC_UNSPECIFIED_ERROR 18000
-#define AGC_UNSUPPORTED_FUNCTION_ERROR 18001
-#define AGC_UNINITIALIZED_ERROR 18002
-#define AGC_NULL_POINTER_ERROR 18003
-#define AGC_BAD_PARAMETER_ERROR 18004
+#define AGC_UNSPECIFIED_ERROR 18000
+#define AGC_UNSUPPORTED_FUNCTION_ERROR 18001
+#define AGC_UNINITIALIZED_ERROR 18002
+#define AGC_NULL_POINTER_ERROR 18003
+#define AGC_BAD_PARAMETER_ERROR 18004
// Warnings
-#define AGC_BAD_PARAMETER_WARNING 18050
+#define AGC_BAD_PARAMETER_WARNING 18050
-enum
-{
- kAgcModeUnchanged,
- kAgcModeAdaptiveAnalog,
- kAgcModeAdaptiveDigital,
- kAgcModeFixedDigital
+enum {
+ kAgcModeUnchanged,
+ kAgcModeAdaptiveAnalog,
+ kAgcModeAdaptiveDigital,
+ kAgcModeFixedDigital
};
-enum
-{
- kAgcFalse = 0,
- kAgcTrue
-};
+enum { kAgcFalse = 0, kAgcTrue };
-typedef struct
-{
- int16_t targetLevelDbfs; // default 3 (-3 dBOv)
- int16_t compressionGaindB; // default 9 dB
- uint8_t limiterEnable; // default kAgcTrue (on)
+typedef struct {
+ int16_t targetLevelDbfs; // default 3 (-3 dBOv)
+ int16_t compressionGaindB; // default 9 dB
+ uint8_t limiterEnable; // default kAgcTrue (on)
} WebRtcAgcConfig;
#if defined(__cplusplus)
-extern "C"
-{
+extern "C" {
#endif
/*
@@ -78,9 +71,7 @@ int WebRtcAgc_GetAddFarendError(void* state, size_t samples);
* : 0 - Normal operation.
* : -1 - Error
*/
-int WebRtcAgc_AddFarend(void* agcInst,
- const int16_t* inFar,
- size_t samples);
+int WebRtcAgc_AddFarend(void* agcInst, const int16_t* inFar, size_t samples);
/*
* This function processes a 10 ms frame of microphone speech to determine
@@ -243,7 +234,7 @@ void WebRtcAgc_Free(void* agcInst);
* Return value : 0 - Ok
* -1 - Error
*/
-int WebRtcAgc_Init(void *agcInst,
+int WebRtcAgc_Init(void* agcInst,
int32_t minLevel,
int32_t maxLevel,
int16_t agcMode,
« no previous file with comments | « webrtc/modules/audio_processing/agc/legacy/digital_agc.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698