diff options
Diffstat (limited to 'src/blockswap~.c')
-rw-r--r-- | src/blockswap~.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/blockswap~.c b/src/blockswap~.c index 7dbe99d..625cdf6 100644 --- a/src/blockswap~.c +++ b/src/blockswap~.c @@ -67,7 +67,7 @@ static void blockswap_dsp(t_blockswap *x, t_signal **sp) dsp_add(blockswap_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); } -static void blockswap_helper(void) +static void blockswap_helper(t_blockswap *x) { post("\n%c blockswap~-object for blockwise-swapping of a signal ", HEARTSYMBOL); post("'help' : view this\n" @@ -75,6 +75,14 @@ static void blockswap_helper(void) post("outlet : signal~"); } +static void blockswap_free(t_blockswap *x) +{ + if(x->blockbuffer){ + freebytes(x->blockbuffer, sizeof(t_float)*x->blocksize); + } + x->blockbuffer=0; +} + static void *blockswap_new(void) { t_blockswap *x = (t_blockswap *)pd_new(blockswap_class); |