mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
Set 128ms audio latency and CC resampler for Emscripten
This commit is contained in:
parent
f637805c9e
commit
fdca622785
@ -216,7 +216,7 @@ enum
|
||||
#define AUDIO_DEFAULT_DRIVER AUDIO_NULL
|
||||
#endif
|
||||
|
||||
#ifdef PSP
|
||||
#if defined(PSP) || defined(EMSCRIPTEN)
|
||||
#define AUDIO_DEFAULT_RESAMPLER_DRIVER AUDIO_RESAMPLER_CC
|
||||
#else
|
||||
#define AUDIO_DEFAULT_RESAMPLER_DRIVER AUDIO_RESAMPLER_SINC
|
||||
@ -681,7 +681,7 @@ static const char *audio_device = NULL;
|
||||
|
||||
/* Desired audio latency in milliseconds. Might not be honored
|
||||
* if driver can't provide given latency. */
|
||||
#ifdef ANDROID
|
||||
#if defined(ANDROID) || defined(EMSCRIPTEN)
|
||||
/* For most Android devices, 64ms is way too low. */
|
||||
static const int out_latency = 128;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user