diff libao2/ao_pulse.c @ 25383:9ca05492f9f3

Documentation for waitop function
author reimar
date Sat, 15 Dec 2007 16:58:25 +0000
parents d0d04fe92bce
children 9199a89af9d6
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;