From b1f6a7e0a11eaf332cf7417e73123534d869334e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 8 May 2016 17:25:31 +0200 Subject: [PATCH] Rename another function --- audio/audio_driver.c | 6 +----- audio/audio_driver.h | 3 ++- driver.c | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/audio/audio_driver.c b/audio/audio_driver.c index d18fdf5c30..9a87f59c27 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -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; diff --git a/audio/audio_driver.h b/audio/audio_driver.h index dc2b6ca5cc..0a92de2173 100644 --- a/audio/audio_driver.h +++ b/audio/audio_driver.h @@ -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); diff --git a/driver.c b/driver.c index 5cda09a53e..322c88f14c 100644 --- a/driver.c +++ b/driver.c @@ -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))