ext/libsamplerate: compile using single precision floating point numbers

Compile using floats instead of doubles, so the FPUs that don't support
double-precision arithmetic can be used.
This commit is contained in:
Krzysztof Kopyściński
2024-04-15 11:50:18 +02:00
committed by Krzysztof Kopyściński
parent 2c1b130cf0
commit 61021c1575
3 changed files with 4 additions and 8 deletions
+4 -1
View File
@@ -26,9 +26,12 @@ pkg.keywords:
pkg.type: sdk
pkg.cflags: -DHAVE_STDBOOL_H -fsingle-precision-constant -DHAVE_CONFIG_H -DNDEBUG
pkg.cflags: -O3 -DHAVE_STDBOOL_H -fsingle-precision-constant -DHAVE_CONFIG_H -DNDEBUG -DLIBSAMPLERATE_SINGLE_PRECISION
pkg.lflags: -lm
app.cflags:
- -DLIBSAMPLERATE_SINGLE_PRECISION
pkg.src_dirs:
- "@libsamplerate/src"
-4
View File
@@ -34,10 +34,6 @@
#define ENABLE_SINC_FAST_CONVERTER 1
#endif
#if MYNEWT_VAL(LIBSAMPLERATE_LIBSAMPLER_NDEBUG)
#define LIBSAMPLER_NDEBUG 1
#endif
#define PACKAGE "libsamplerate"
#define VERSION "0.2.2"
-3
View File
@@ -25,6 +25,3 @@ syscfg.defs:
LIBSAMPLERATE_ENABLE_SINC_FAST_CONVERTER:
description: Enable SINC fastest converter
value: 1
LIBSAMPLERATE_LIBSAMPLER_NDEBUG:
description: Define NDEBUG for resampler code (turns off asserts)
value: 0