25 lines
516 B
C++
25 lines
516 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
|
|
#ifdef USE_SDL
|
|
#define LockAudioDevice SDL_LockAudioDevice
|
|
#endif
|