diff options
| -rw-r--r-- | ports/soxr/001_initialize-resampler.patch | 13 | ||||
| -rw-r--r-- | ports/soxr/002_disable_warning.patch | 12 | ||||
| -rw-r--r-- | ports/soxr/portfile.cmake | 3 |
3 files changed, 28 insertions, 0 deletions
diff --git a/ports/soxr/001_initialize-resampler.patch b/ports/soxr/001_initialize-resampler.patch new file mode 100644 index 000000000..6be5f29bd --- /dev/null +++ b/ports/soxr/001_initialize-resampler.patch @@ -0,0 +1,13 @@ +diff --git a/src/soxr.c b/src/soxr.c
+index c2861ac..c95cfd4 100644
+--- a/src/soxr.c
++++ b/src/soxr.c
+@@ -815,7 +815,7 @@ soxr_error_t soxr_oneshot(
+ soxr_quality_spec_t const * q_spec,
+ soxr_runtime_spec_t const * runtime_spec)
+ {
+- soxr_t resampler;
++ soxr_t resampler = NULL;
+ soxr_error_t error = q_spec? q_spec->e : 0;
+ if (!error) {
+ soxr_quality_spec_t q_spec1;
diff --git a/ports/soxr/002_disable_warning.patch b/ports/soxr/002_disable_warning.patch new file mode 100644 index 000000000..fc8550187 --- /dev/null +++ b/ports/soxr/002_disable_warning.patch @@ -0,0 +1,12 @@ +diff --git a/src/pffft.c b/src/pffft.c
+index 46c841e..0686bef 100644
+--- a/src/pffft.c
++++ b/src/pffft.c
+@@ -182,7 +182,6 @@ typedef float32x4_t v4sf;
+ # define VALIGNED(ptr) ((((long)(ptr)) & 0x3) == 0)
+ #else
+ # if !defined(PFFFT_SIMD_DISABLE)
+-# warning "building with simd disabled !\n";
+ # define PFFFT_SIMD_DISABLE /* fallback to scalar code */
+ # endif
+ #endif
diff --git a/ports/soxr/portfile.cmake b/ports/soxr/portfile.cmake index 091c94e49..344b725f2 100644 --- a/ports/soxr/portfile.cmake +++ b/ports/soxr/portfile.cmake @@ -28,6 +28,9 @@ vcpkg_extract_source_archive_ex( # PATCHES
# 001_port_fixes.patch
# 002_more_port_fixes.patch
+ PATCHES
+ 001_initialize-resampler.patch
+ 002_disable_warning.patch
)
vcpkg_configure_cmake(
|
