This commit is contained in:
twinaphex 2016-10-24 07:28:32 +02:00
parent 70eaadb8f7
commit ef67ba52b3
2 changed files with 10 additions and 11 deletions

View File

@ -298,6 +298,16 @@ static bool uninit_audio(void)
return true;
}
static bool audio_driver_init_resampler(void)
{
settings_t *settings = config_get_ptr();
return rarch_resampler_realloc(
&audio_driver_resampler_data,
&audio_driver_resampler,
settings->audio.resampler,
audio_driver_data.source_ratio.original);
}
static bool audio_driver_init_internal(bool audio_cb_inited)
{
size_t outsamples_max, max_bufsamples = AUDIO_CHUNK_SIZE_NONBLOCKING * 2;
@ -835,15 +845,6 @@ bool audio_driver_get_devices_list(void **data)
return true;
}
bool audio_driver_init_resampler(void)
{
settings_t *settings = config_get_ptr();
return rarch_resampler_realloc(
&audio_driver_resampler_data,
&audio_driver_resampler,
settings->audio.resampler,
audio_driver_data.source_ratio.original);
}
bool audio_driver_deinit(void)
{

View File

@ -100,8 +100,6 @@ void audio_driver_destroy(void);
void audio_driver_deinit_resampler(void);
bool audio_driver_init_resampler(void);
bool audio_driver_free_devices_list(void);
bool audio_driver_new_devices_list(void);