Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

deps: use floating point everywhere!

  • Loading branch information...
commit 0554491fd2f65052bbd161793863dbd4dbe7e8d8 1 parent 49ff55a
@indutny authored
View
4 deps/opus/config/default/config.h
@@ -11,8 +11,6 @@
#define OPUS_BUILD 1
-#ifndef FIXED_POINT
-#define FIXED_POINT 1
-#endif // FIXED_POINT
+#define FLOATING_POINT 1
#endif // CONFIG_H
View
7 deps/opus/config/mac/config.h
@@ -14,13 +14,10 @@
/* #undef FIXED_DEBUG */
/* Compile as fixed-point */
-
-#ifndef FIXED_POINT
-#define FIXED_POINT 1
-#endif /* FIXED_POINT */
+/* #undef FIXED_POINT */
/* Compile as floating-point */
-/* #undef FLOATING_POINT */
+#define FLOATING_POINT 1
/* Float approximations */
/* #undef FLOAT_APPROX */
View
5 deps/speex/config.h
@@ -1,8 +1,5 @@
-/* Disable all parts of the API that are using floats */
-#define DISABLE_FLOAT_API 1
-
/* Compile as fixed-point */
-#define FIXED_POINT 1
+#define FLOATING_POINT 1
/* Define to 1 if you have the <alloca.h> header file. */
#define HAVE_ALLOCA_H 1
View
10 src/audio/unit.cc
@@ -127,6 +127,16 @@ HALUnit::HALUnit(double rate,
abort();
}
+ // AGC
+ int32_t enable = 1;
+ if (speex_preprocess_ctl(preprocess_,
+ SPEEX_PREPROCESS_SET_AGC,
+ &enable) != 0) {
+ fprintf(stderr, "Failed to enable AGC on preprocessor!\n");
+ abort();
+ }
+
+
// Init semaphores
uv_sem_init(&canceller_sem_, 0);
uv_sem_init(&canceller_terminate_, 0);
Please sign in to comment.
Something went wrong with that request. Please try again.