From: Jérémie Astor Date: Sun, 22 Nov 2020 21:09:24 +0000 (+0100) Subject: :art: Expose new_UGen X-Git-Tag: nightly~1140^2~17 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5b19c087ffefdd695a163281eac8778c1a7c08be;p=gwion.git :art: Expose new_UGen --- diff --git a/include/object.h b/include/object.h index e16f7793..9ea5ee1a 100644 --- a/include/object.h +++ b/include/object.h @@ -11,6 +11,7 @@ struct M_Object_ { ANN void instantiate_object(const VM_Shred, const Type); ANN void free_object(MemPool p, const M_Object); ANEW M_Object new_object(MemPool, const VM_Shred, const Type); +ANEW struct UGen_* new_UGen(MemPool); ANEW M_Object new_M_UGen(const struct Gwion_*); ANN void fork_clean(const VM_Shred, const Vector); ANN ANEW M_Object new_array(MemPool, const Type t, const m_uint length); diff --git a/src/lib/ugen.c b/src/lib/ugen.c index a948cc8e..1773a394 100644 --- a/src/lib/ugen.c +++ b/src/lib/ugen.c @@ -84,7 +84,7 @@ describe_compute(multi,,) describe_compute(mono, trig, {u->module.gen.trig->compute(u->module.gen.trig);}) describe_compute(multi, trig, {u->module.gen.trig->compute(u->module.gen.trig);}) -ANEW static UGen new_UGen(MemPool p) { +ANEW UGen new_UGen(MemPool p) { const UGen u = mp_calloc(p, UGen); u->op = 0; u->compute = gen_compute_mono;