mirror of https://github.com/AxioDL/boo.git
Fixes for Apple Silicon (cmake / soxr)
This commit is contained in:
parent
6ae9e93d31
commit
6faff77f86
|
@ -212,9 +212,13 @@ elseif(WIN32)
|
||||||
Xinput
|
Xinput
|
||||||
)
|
)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
|
set(AudioMatrix_SRC lib/audiodev/AudioMatrix.cpp)
|
||||||
|
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL x86_64)
|
||||||
|
set(AudioMatrix_SRC lib/audiodev/AudioMatrixSSE.cpp)
|
||||||
|
endif()
|
||||||
target_sources(boo PRIVATE
|
target_sources(boo PRIVATE
|
||||||
lib/audiodev/AQS.cpp
|
lib/audiodev/AQS.cpp
|
||||||
lib/audiodev/AudioMatrixSSE.cpp
|
${AudioMatrix_SRC}
|
||||||
lib/inputdev/HIDListenerIOKit.cpp
|
lib/inputdev/HIDListenerIOKit.cpp
|
||||||
lib/inputdev/HIDDeviceIOKit.cpp
|
lib/inputdev/HIDDeviceIOKit.cpp
|
||||||
lib/mac/ApplicationCocoa.mm
|
lib/mac/ApplicationCocoa.mm
|
||||||
|
|
|
@ -154,7 +154,7 @@ typedef __m128 v4sf;
|
||||||
/*
|
/*
|
||||||
ARM NEON support macros
|
ARM NEON support macros
|
||||||
*/
|
*/
|
||||||
#elif !defined(PFFFT_SIMD_DISABLE) && defined(__arm__)
|
#elif !defined(PFFFT_SIMD_DISABLE) && (defined(__arm__) || defined(__arm64__))
|
||||||
# include <arm_neon.h>
|
# include <arm_neon.h>
|
||||||
typedef float32x4_t v4sf;
|
typedef float32x4_t v4sf;
|
||||||
# define SIMD_SZ 4
|
# define SIMD_SZ 4
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -13,7 +13,11 @@
|
||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#if __x86_64__
|
||||||
#include <xmmintrin.h>
|
#include <xmmintrin.h>
|
||||||
|
#else
|
||||||
|
#include "sse2neon.h"
|
||||||
|
#endif
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#define FIFO_SIZE_T int
|
#define FIFO_SIZE_T int
|
||||||
#define FIFO_MIN 0x8000
|
#define FIFO_MIN 0x8000
|
||||||
|
|
Loading…
Reference in New Issue