diff --git a/config.def.h b/config.def.h index c3e7aa26d4..7a0cf21cac 100644 --- a/config.def.h +++ b/config.def.h @@ -314,6 +314,13 @@ static const int out_latency = 64; // Will sync audio. (recommended) static const bool audio_sync = true; +// Default resampler +#ifdef HAVE_SINC +static const char *audio_resampler = "sinc"; +#else +static const char *audio_resampler = "hermite"; +#endif + // Experimental rate control #if defined(GEKKO) || !defined(RARCH_CONSOLE) static const bool rate_control = true; diff --git a/settings.c b/settings.c index 07aac004e9..5aa522d3d2 100644 --- a/settings.c +++ b/settings.c @@ -201,6 +201,7 @@ void config_set_defaults(void) g_settings.audio.rate_control = rate_control; g_settings.audio.rate_control_delta = rate_control_delta; g_settings.audio.volume = audio_volume; + strlcpy(g_settings.audio.resampler, audio_resampler, sizeof(g_settings.audio.resampler)); g_settings.rewind_enable = rewind_enable; g_settings.rewind_buffer_size = rewind_buffer_size;