From: Jérémie Astor Date: Fri, 6 Dec 2019 15:46:55 +0000 (+0100) Subject: :art: Fixes X-Git-Tag: nightly~2069^2~3 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d995f30ff0d0dc729557973af5c547c51f8895f6;p=gwion.git :art: Fixes --- diff --git a/src/lib/modules.c b/src/lib/modules.c index f96c0b9f..b6eab731 100644 --- a/src/lib/modules.c +++ b/src/lib/modules.c @@ -246,7 +246,7 @@ static MFUN(default_tick) { uu->shred = NULL; } UGEN(o)->module.gen.tick = id_tick; - release(o, shred); +// release(o, shred); } static INSTR(UsrUGenTick) { @@ -280,7 +280,7 @@ static OP_EMIT(opem_usrugen) { static GWION_IMPORT(usrugen) { GWI_OB(gwi_class_ini(gwi, "UsrUGen", "UGen")) gwi_class_xtor(gwi, usrugen_ctor, usrugen_dtor); - GWI_BB(gwi_func_ini(gwi, "void", "default_tick")) + GWI_BB(gwi_func_ini(gwi, "int", "default_tick")) GWI_BB(gwi_func_end(gwi, default_tick, 0)) GWI_BB(gwi_class_end(gwi)) GWI_BB(gwi_oper_ini(gwi, "@function", "UsrUGen", "UsrUGen")) diff --git a/tests/UsrUgen/UsrUGen.gw b/tests/UsrUgen/UsrUGen.gw index 4c1792b0..f7a1f254 100644 --- a/tests/UsrUgen/UsrUGen.gw +++ b/tests/UsrUgen/UsrUGen.gw @@ -26,5 +26,5 @@ samp => now; <<< u.last() >>>; u.default_tick(); -samp => now; +2::samp => now; <<< u.last() >>>;