22 lines
471 B
C++
22 lines
471 B
C++
|
#pragma once
|
||
|
#include <soundtouch_config.h>
|
||
|
#if defined(__EMSCRIPTEN__)||defined(__ANDROID__)
|
||
|
#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
|