(audio_resampler_driver) Cleanups

This commit is contained in:
twinaphex 2015-02-05 19:04:46 +01:00
parent e866c213b0
commit a1a81db680
2 changed files with 17 additions and 4 deletions

View File

@ -121,13 +121,13 @@ const char* config_get_audio_resampler_driver_options(void)
if (!options)
{
string_list_free(options_l);
options_l = NULL;
return NULL;
options = NULL;
goto done;
}
string_list_join_concat(options, options_len, options_l, "|");
done:
string_list_free(options_l);
options_l = NULL;
@ -164,6 +164,15 @@ static const rarch_resampler_t *find_resampler_driver(const char *ident)
return resampler_drivers[0];
}
resampler_simd_mask_t resampler_get_cpu_features(void)
{
#ifdef RARCH_INTERNAL
return rarch_get_cpu_features();
#else
return perf_get_cpu_features();
#endif
}
/**
* resampler_append_plugs:
* @re : Resampler handle
@ -178,7 +187,7 @@ static bool resampler_append_plugs(void **re,
const rarch_resampler_t **backend,
double bw_ratio)
{
resampler_simd_mask_t mask = rarch_get_cpu_features();
resampler_simd_mask_t mask = resampler_get_cpu_features();
*re = (*backend)->init(&resampler_config, bw_ratio, mask);

View File

@ -201,6 +201,10 @@ bool rarch_resampler_realloc(void **re, const rarch_resampler_t **backend,
(backend)->process(handle, data); \
} while(0)
#ifndef RARCH_INTERNAL
extern retro_get_cpu_features_t perf_get_cpu_features_cb;
#endif
#ifdef __cplusplus
}
#endif