From e5ffeff36e1a0d371cf92b08091041b2237939d8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 1 Feb 2020 17:24:27 +0100 Subject: [PATCH] Turn two more functions static --- retroarch.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/retroarch.c b/retroarch.c index 0e19b9ff36..4c7761cffe 100644 --- a/retroarch.c +++ b/retroarch.c @@ -4775,19 +4775,17 @@ finish: free(raw_output_data); } -bool is_ai_service_speech_running(void) +static bool is_ai_service_speech_running(void) { #ifdef HAVE_AUDIOMIXER enum audio_mixer_state res = audio_driver_mixer_get_stream_state(10); - if (res == AUDIO_STREAM_STATE_NONE || res == AUDIO_STREAM_STATE_STOPPED) - return false; - return true; -#else - return false; + if (res != AUDIO_STREAM_STATE_NONE && res != AUDIO_STREAM_STATE_STOPPED) + return true; #endif + return false; } -bool ai_service_speech_stop(void) +static bool ai_service_speech_stop(void) { #ifdef HAVE_AUDIOMIXER audio_driver_mixer_stop_stream(10);