Skip to content

Commit

Permalink
Merge pull request #26 from srcejon/android
Browse files Browse the repository at this point in the history
Fix compilation on Android
  • Loading branch information
Xerbo authored Nov 30, 2023
2 parents 57271c3 + a73017f commit 7db2030
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/dsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <complex.h>

#include "apt.h"
#include "filter.h"
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7db2030

Please sign in to comment.