aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_api.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output_api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/output_api.c b/src/output_api.c
index c8225579d..e9216a2ef 100644
--- a/src/output_api.c
+++ b/src/output_api.c
@@ -31,3 +31,7 @@ void audio_output_closed(struct audio_output *ao)
ao->open = 0;
}
+bool audio_output_is_pending(const struct audio_output *ao)
+{
+ return ao->command != AO_COMMAND_NONE;
+}