Set default resampler explicitly.

This commit is contained in:
Themaister 2013-02-08 14:50:14 +01:00
parent 094d076944
commit 19f487b765
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;