From 3359f8785ef9b595b3ad943fdd2227f98ce56990 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 9 Nov 2009 22:16:26 +0100 Subject: output_thread: added command DRAIN This command manually drains the hardware buffer. This is useful when the player thread want to make sure that everything has been played. --- src/output_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/output_internal.h') diff --git a/src/output_internal.h b/src/output_internal.h index 6b81bbc7..de1b15c2 100644 --- a/src/output_internal.h +++ b/src/output_internal.h @@ -40,6 +40,13 @@ enum audio_output_command { AO_COMMAND_CLOSE, AO_COMMAND_PAUSE, + + /** + * Drains the internal (hardware) buffers of the device. This + * operation may take a while to complete. + */ + AO_COMMAND_DRAIN, + AO_COMMAND_CANCEL, AO_COMMAND_KILL }; -- cgit v1.2.3