changeset 25383:9ca05492f9f3

Documentation for waitop function
author reimar
date Sat, 15 Dec 2007 16:58:25 +0000
parents 25b27cf5bbeb
children 9199a89af9d6
files libao2/ao_pulse.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_pulse.c	Sat Dec 15 15:38:38 2007 +0000
+++ b/libao2/ao_pulse.c	Sat Dec 15 16:58:25 2007 +0000
@@ -91,6 +91,12 @@
     pa_threaded_mainloop_signal(mainloop, 0);
 }
 
+/**
+ * \brief waits for a pulseaudio operation to finish, frees it and
+ *        unlocks the mainloop
+ * \param op operation to wait for
+ * \return 1 if operation has finished normally (DONE state), 0 otherwise
+ */
 static int waitop(pa_operation *op) {
     pa_operation_state_t state;
     if (!op) return 0;