From a73017f0fab2353c29b0e4a1ba7d746ac0121343 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 10 Nov 2023 10:30:33 +0000 Subject: [PATCH] Included complex.h needed on Android. Remove unused variables. --- README.md | 4 ++++ src/dsp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7865e84..98a021d 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,10 @@ To build natively on Windows using MSVC, you will also need: git, ninja and cmak If you just wish to build libaptdec on Windows, libpng and libsndfile aren't needed. +## Building for Android + +Requires at least API 23 + ## Further Reading [User's Guide for Building and Operating diff --git a/src/dsp.c b/src/dsp.c index befffe7..5e7ca1e 100644 --- a/src/dsp.c +++ b/src/dsp.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "apt.h" #include "filter.h" @@ -90,7 +91,6 @@ static int getamp(float *ampbuff, int count, apt_getsamples_t getsamples, void * static int nin = 0; for (int n = 0; n < count; n++) { - float I2, Q; // Get some more samples when needed if (nin < HILBERT_FILTER_SIZE * 2 + 2) {