diff options
Diffstat (limited to '')
-rw-r--r-- | src/audio.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/audio.c b/src/audio.c index 45f36fff6..953b1a54e 100644 --- a/src/audio.c +++ b/src/audio.c @@ -247,11 +247,9 @@ bool playAudio(const char *buffer, size_t length) if (!audio_output_is_open(ao)) continue; - if (audio_output_command_is_finished(ao)) { - bool success = audio_output_get_result(ao); - if (success) - ret = true; - } else { + if (audio_output_command_is_finished(ao)) + ret = true; + else { finished = false; audio_output_signal(ao); } |