Skip to content

Commit

Permalink
Merge pull request #137 from fwcd/mixxx/rubberband-fftw3-ios-wasm
Browse files Browse the repository at this point in the history
[rubberband] Use FFTW3 when targeting iOS or WASM (microsoft#37101)
  • Loading branch information
daschuer authored Mar 5, 2024
2 parents eddd0f2 + 78a74a0 commit 5e1a10e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
9 changes: 6 additions & 3 deletions ports/rubberband/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ else()
endif()

# Select fastest available FFT library according https://github.com/breakfastquay/rubberband/blob/default/COMPILING.md#fft-libraries-supported
if(VCPKG_TARGET_IS_WINDOWS AND (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64"))
set(FFT_LIB "fftw")
elseif(VCPKG_TARGET_IS_OSX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
if(
(VCPKG_TARGET_IS_WINDOWS AND (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64"))
OR (VCPKG_TARGET_IS_OSX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
OR VCPKG_TARGET_IS_IOS
OR VCPKG_TARGET_IS_EMSCRIPTEN
)
set(FFT_LIB "fftw")
else()
set(FFT_LIB "sleef")
Expand Down
5 changes: 3 additions & 2 deletions ports/rubberband/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "rubberband",
"version": "3.3.0",
"port-version": 1,
"description": "A high quality software library for audio time-stretching and pitch-shifting.",
"homepage": "https://www.breakfastquay.com/rubberband/",
"license": "GPL-2.0-or-later",
"supports": "!uwp & !(windows & static) & !xbox",
"dependencies": [
{
"name": "fftw3",
"platform": "(arm & windows) | (x86 & windows) | (arm64 & osx)"
"platform": "(arm & windows) | (x86 & windows) | (arm64 & osx) | ios | emscripten"
},
"libsamplerate",
{
"name": "sleef",
"platform": "!(arm & windows) & !(x86 & windows) & !(arm64 & osx)"
"platform": "!(arm & windows) & !(x86 & windows) & !(arm64 & osx) & !ios & !emscripten"
},
{
"name": "vcpkg-tool-meson",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7474,7 +7474,7 @@
},
"rubberband": {
"baseline": "3.3.0",
"port-version": 0
"port-version": 1
},
"rxcpp": {
"baseline": "4.1.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/rubberband.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "478bcca88451fbdd2fa88816f21449c1b8675e9d",
"version": "3.3.0",
"port-version": 1
},
{
"git-tree": "f3a5ed426944950b92d114499028a3c4c5ed3219",
"version": "3.3.0",
Expand Down

0 comments on commit 5e1a10e

Please sign in to comment.