2 Incheckningar

Upphovsman SHA1 Meddelande Datum
  Liam 7db20300e5
Merge pull request #26 from srcejon/android 5 månader sedan
  Jon Beniston a73017f0fa Included complex.h needed on Android. Remove unused variables. 6 månader sedan
2 ändrade filer med 5 tillägg och 1 borttagningar
Unifierad Vy
  1. +4
    -0
      README.md
  2. +1
    -1
      src/dsp.c

+ 4
- 0
README.md Visa fil

@@ -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. 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 ## Further Reading


[User's Guide for Building and Operating [User's Guide for Building and Operating


+ 1
- 1
src/dsp.c Visa fil

@@ -20,6 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <complex.h>


#include "apt.h" #include "apt.h"
#include "filter.h" #include "filter.h"
@@ -90,7 +91,6 @@ static int getamp(float *ampbuff, int count, apt_getsamples_t getsamples, void *
static int nin = 0; static int nin = 0;


for (int n = 0; n < count; n++) { for (int n = 0; n < count; n++) {
float I2, Q;


// Get some more samples when needed // Get some more samples when needed
if (nin < HILBERT_FILTER_SIZE * 2 + 2) { if (nin < HILBERT_FILTER_SIZE * 2 + 2) {


Laddar…
Avbryt
Spara