mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Cleanups
This commit is contained in:
parent
70eaadb8f7
commit
ef67ba52b3
@ -298,6 +298,16 @@ static bool uninit_audio(void)
|
|||||||
return true;
|
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)
|
static bool audio_driver_init_internal(bool audio_cb_inited)
|
||||||
{
|
{
|
||||||
size_t outsamples_max, max_bufsamples = AUDIO_CHUNK_SIZE_NONBLOCKING * 2;
|
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;
|
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)
|
bool audio_driver_deinit(void)
|
||||||
{
|
{
|
||||||
|
@ -100,8 +100,6 @@ void audio_driver_destroy(void);
|
|||||||
|
|
||||||
void audio_driver_deinit_resampler(void);
|
void audio_driver_deinit_resampler(void);
|
||||||
|
|
||||||
bool audio_driver_init_resampler(void);
|
|
||||||
|
|
||||||
bool audio_driver_free_devices_list(void);
|
bool audio_driver_free_devices_list(void);
|
||||||
|
|
||||||
bool audio_driver_new_devices_list(void);
|
bool audio_driver_new_devices_list(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user