looper/config.hpp

26 lines
516 B
C++
Raw Normal View History

#pragma once
#include <soundtouch_config.h>
2024-10-19 16:37:43 -07:00
#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
2024-10-19 16:37:43 -07:00
#endif
#ifdef USE_SDL
#define LockAudioDevice SDL_LockAudioDevice
#endif