mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +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)
|
// Will sync audio. (recommended)
|
||||||
static const bool audio_sync = true;
|
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
|
// Experimental rate control
|
||||||
#if defined(GEKKO) || !defined(RARCH_CONSOLE)
|
#if defined(GEKKO) || !defined(RARCH_CONSOLE)
|
||||||
static const bool rate_control = true;
|
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 = rate_control;
|
||||||
g_settings.audio.rate_control_delta = rate_control_delta;
|
g_settings.audio.rate_control_delta = rate_control_delta;
|
||||||
g_settings.audio.volume = audio_volume;
|
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_enable = rewind_enable;
|
||||||
g_settings.rewind_buffer_size = rewind_buffer_size;
|
g_settings.rewind_buffer_size = rewind_buffer_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user