mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 19:20:48 +00:00
Set default resampler explicitly.
This commit is contained in:
parent
094d076944
commit
19f487b765
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user