void *hv_getUserData(HvBase *c) { return ctx_getUserData(c); }
void cPrint_onMessage(HvBase *_c, const HvMessage *const m, const char *name) { if (Base(_c)->printHook != NULL) { char *s = msg_toString(m); Base(_c)->printHook(((double) msg_getTimestamp(m))/ctx_getSampleRate(_c), name, s, ctx_getUserData(_c)); hv_free(s); } }