looper/config.hpp
Zachary Hall 0a5bc4e779
Some checks failed
Build / build-gentoo (push) Successful in 1m6s
Build / build-appimage (push) Failing after 9m55s
Build / build-android (push) Has been cancelled
Fix Linux build
2024-10-20 10:29:55 -07:00

22 lines
450 B
C++

#pragma once
#include <soundtouch_config.h>
#if defined(__EMSCRIPTEN__)
#define NO_THREADS
#endif
#ifdef SOUNDTOUCH_INTEGER_SAMPLES
#define SDL_SAMPLE_FMT AUDIO_S16SYS
#else
#define SDL_SAMPLE_FMT AUDIO_F32SYS
#endif
#ifdef __ANDROID__
#define USE_OBOE
#ifdef SOUNDTOUCH_INTEGER_SAMPLES
#define SAMPLE_FMT oboe::AudioFormat::I16
#else
#define SAMPLE_FMT oboe::AudioFormat::Float
#endif
#else
#define SAMPLE_FMT SDL_SAMPLE_FMT
#define USE_SDL
#endif