瀏覽代碼
Merge pull request #26 from srcejon/android
Fix compilation on Android
master
Liam
1 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
2 個文件被更改,包括
5 次插入 和
1 次删除
-
README.md
-
src/dsp.c
|
|
@@ -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 |
|
|
|
|
|
@@ -20,6 +20,7 @@ |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <string.h> |
|
|
|
#include <complex.h> |
|
|
|
|
|
|
|
#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) { |
|
|
|