#define PULSE_ASYNC_RUN(name, ...) do { struct pulse_op *_op = pulse_op_new(); _op->o = name(pulse_ctx, __VA_ARGS__, _op); } while (0)
#define PULSE_ASYNC_INIT_RUN(name, ...) do { struct pulse_op *_op = pulse_op_new(); _op->is_init = 1; _op->o = name(pulse_ctx, __VA_ARGS__, _op); } while (0)
-static void pulse_success_cb(pa_context *ctx UNUSED, int success, void *userdata)
+static void pulse_success_cb(pa_context *ctx, int success, void *userdata)
{
if (!success)
- msg(L_ERROR, "Pulse: Failure reported");
+ msg(L_ERROR, "Pulse: Failure reported: %s", pa_strerror(pa_context_errno(ctx)));
pulse_op_done(userdata);
}