Rename another function

This commit is contained in:
twinaphex 2016-05-08 17:25:31 +02:00
parent 8125579b7c
commit b1f6a7e0a1
3 changed files with 4 additions and 7 deletions

View File

@ -705,8 +705,7 @@ void audio_driver_set_buffer_size(size_t bufsize)
audio_driver_data.driver_buffer_size = bufsize;
}
static void audio_monitor_adjust_system_rates(void)
void audio_driver_adjust_system_rates(void)
{
float timing_skew;
settings_t *settings = config_get_ptr();
@ -936,9 +935,6 @@ bool audio_driver_ctl(enum rarch_audio_ctl_state state, void *data)
audio_callback.callback = NULL;
audio_callback.set_state = NULL;
break;
case RARCH_AUDIO_CTL_MONITOR_ADJUST_SYSTEM_RATES:
audio_monitor_adjust_system_rates();
break;
case RARCH_AUDIO_CTL_MUTE_TOGGLE:
if (!audio_driver_context_audio_data)
return false;

View File

@ -45,7 +45,6 @@ enum rarch_audio_ctl_state
RARCH_AUDIO_CTL_DESTROY_DATA,
RARCH_AUDIO_CTL_START,
RARCH_AUDIO_CTL_STOP,
RARCH_AUDIO_CTL_MONITOR_ADJUST_SYSTEM_RATES,
RARCH_AUDIO_CTL_MUTE_TOGGLE,
RARCH_AUDIO_CTL_UNSET_CALLBACK,
RARCH_AUDIO_CTL_ALIVE,
@ -175,6 +174,8 @@ bool audio_driver_get_devices_list(void **ptr);
void audio_driver_setup_rewind(void);
void audio_driver_adjust_system_rates(void);
bool audio_driver_set_callback(const void *data);
bool audio_driver_callback(void);

View File

@ -200,7 +200,7 @@ bool driver_find_next(const char *label, char *s, size_t len)
static void driver_adjust_system_rates(void)
{
audio_driver_ctl(RARCH_AUDIO_CTL_MONITOR_ADJUST_SYSTEM_RATES, NULL);
audio_driver_adjust_system_rates();
video_driver_monitor_adjust_system_rates();
if (!video_driver_get_ptr(false))