Turn two more functions static

This commit is contained in:
twinaphex 2020-02-01 17:24:27 +01:00
parent bece92abb2
commit e5ffeff36e

View File

@ -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);