From e59dace9e1a049bde15eecb312ec196b6672ce4f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 12 Jan 2015 21:02:13 +0100 Subject: [PATCH] (audio/resampler) Some changes --- audio/resamplers/resampler.c | 5 +++++ audio/resamplers/resampler.h | 11 +++++++++++ driver.h | 9 --------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/audio/resamplers/resampler.c b/audio/resamplers/resampler.c index 09ea80dc28..fb89e44605 100644 --- a/audio/resamplers/resampler.c +++ b/audio/resamplers/resampler.c @@ -20,6 +20,9 @@ #endif #include #include +#ifndef DONT_HAVE_STRING_LIST +#include +#endif static const rarch_resampler_t *resampler_drivers[] = { &sinc_resampler, @@ -93,7 +96,9 @@ void find_next_resampler_driver(void) RARCH_WARN("Couldn't find any next resampler driver (current one: \"%s\").\n", driver.resampler->ident); } +#endif +#ifndef DONT_HAVE_STRING_LIST /** * config_get_audio_resampler_driver_options: * diff --git a/audio/resamplers/resampler.h b/audio/resamplers/resampler.h index cef79242bb..d392d9c217 100644 --- a/audio/resamplers/resampler.h +++ b/audio/resamplers/resampler.h @@ -143,6 +143,17 @@ extern rarch_resampler_t sinc_resampler; extern rarch_resampler_t CC_resampler; extern rarch_resampler_t nearest_resampler; +#ifndef DONT_HAVE_STRING_LIST +/** + * config_get_audio_resampler_driver_options: + * + * Get an enumerated list of all resampler driver names, separated by '|'. + * + * Returns: string listing of all resampler driver names, separated by '|'. + **/ +const char* config_get_audio_resampler_driver_options(void); +#endif + /** * rarch_resampler_realloc: * @re : Resampler handle diff --git a/driver.h b/driver.h index c1f34ba5b3..e6117ec89e 100644 --- a/driver.h +++ b/driver.h @@ -347,15 +347,6 @@ void find_prev_driver(const char *label, char *str, size_t sizeof_str); **/ void find_next_driver(const char *label, char *str, size_t sizeof_str); -/** - * config_get_audio_resampler_driver_options: - * - * Get an enumerated list of all resampler driver names, separated by '|'. - * - * Returns: string listing of all resampler driver names, separated by '|'. - **/ -const char* config_get_audio_resampler_driver_options(void); - /** * find_prev_resampler_driver: *