On Wed, 2012-06-20 at 17:33 +0200, Fr?d?ric Dalleau wrote: > +int pa__init(pa_module*m) { > + struct userdata *u; > + > + pa_assert(m); > + > + m->userdata = u = pa_xnew(struct userdata, 1); > + > + u->source_put_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SOURCE_PUT], PA_HOOK_LATE+20, (pa_hook_cb_t) source_put_hook_callback, u); If you use something else than PA_HOOK_NORMAL for the slot priority, you should have some reason for that and document it with a comment. -- Tanu