flatten 20260225

This commit is contained in:
Timothy Prepscius
2026-02-25 13:00:25 -05:00
commit b308a4c280
114 changed files with 14759 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
include $(MAKEDIR)/Makefile.base
PROJECTS :=
INCPATH :=
SRC_C := \
src/soxr.c \
src/data-io.c \
src/dbesi0.c \
src/filter.c \
src/fft4g64.c \
src/cr.c \
src/cr32.c \
src/fft4g32.c \
src/cr64.c \
src/vr32.c \
ifeq (x86_64,$(SYS_PLATFORM))
_FLAGS := $(FLAGS) -mavx
SRC += \
src/pffft32s.c \
src/cr32s.c \
src/util32s.c \
src/cr64s.c \
src/pffft64s.c \
src/util64s.c \
else
SRC += \
src/pffft32.c \
endif
LIBFILE := libsoxr.a
COPYTO := ../../sdk/lib
_FLAGS := $(_FLAGS) -DSOXR_LIB -fPIC
# -Dsoxr_EXPORTS
include $(MAKEDIR)/Makefile.lib

31
resources/packages/soxr/prepare Executable file
View File

@@ -0,0 +1,31 @@
set -x
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p sdk/include
LIB=soxr
mkdir $LIB
pushd $LIB
git clone --depth 1 https://github.com/chirlu/soxr.git --branch 0.1.3
cp -av $DIR/Makefile.project soxr/
cp -av $DIR/soxr-config.h soxr/src/soxr-config.h
pushd soxr
git apply $DIR/src_pffft-wrap.c.patch
popd
ln -s $DIR/../../Makefile-template soxr/Makefile
pushd soxr
make
popd
popd
pushd sdk/include
ln -fs ../../$LIB/soxr/src soxr
popd

View File

@@ -0,0 +1,37 @@
/* SoX Resampler Library Copyright (c) 2007-16 robs@users.sourceforge.net
* Licence for this file: LGPL v2.1 See LICENCE for details. */
#if !defined soxr_config_included
#define soxr_config_included
#define AVCODEC_FOUND 0
#define AVUTIL_FOUND 0
#define WITH_PFFFT 1
#define HAVE_FENV_H 1
#define HAVE_STDBOOL_H 1
#define HAVE_STDINT_H 1
#define HAVE_LRINT 1
#define HAVE_BIGENDIAN 0
#if defined(SYS_ARM64)
#define WITH_CR32S 0
#define WITH_CR64S 0
#define WITH_CR32 1
#define WITH_CR64 1
#define WITH_VR32 1
#else
#define WITH_CR32S 1
#define WITH_CR64S 1
#define WITH_CR32 0
#define WITH_CR64 0
#define WITH_VR32 0
#endif
#define WITH_HI_PREC_CLOCK 1
#define WITH_FLOAT_STD_PREC_CLOCK 0
#define WITH_DEV_TRACE 0
#endif

View File

@@ -0,0 +1,27 @@
diff --git a/src/pffft-wrap.c b/src/pffft-wrap.c
index c920f06..f75aae0 100644
--- a/src/pffft-wrap.c
+++ b/src/pffft-wrap.c
@@ -5,6 +5,8 @@
#include "math-wrap.h"
+#if !defined PFFFT_SIMD_DISABLE
+
#if PFFFT_DOUBLE
#include "util64s.h"
#else
@@ -13,10 +15,13 @@
#define cos(x) cosf(x)
#endif
+#endif
+
#define pffft_aligned_free SIMD_ALIGNED_FREE
#define pffft_aligned_malloc SIMD_ALIGNED_MALLOC
#define pffft_aligned_calloc SIMD_ALIGNED_CALLOC
+
#undef inline
#define inline __inline