From 5b19c087ffefdd695a163281eac8778c1a7c08be Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 22 Nov 2020 22:09:24 +0100 Subject: [PATCH] :art: Expose new_UGen --- include/object.h | 1 + src/lib/ugen.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.43.0