diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-04-08 16:55:31 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-04-08 16:55:31 +0000 |
commit | 1a33cfc4578680b75c875b097c7d2d5745c8843c (patch) | |
tree | 4799bad57c190d5e5b44e55c57756008fe4c911c /src | |
parent | a5d6c6ad14d1ad05b3552739ee7a08fdd26b9ae3 (diff) |
suspend DSP before deleting; much faster and less errors..
svn path=/trunk/externals/iem/iemguts/; revision=10985
Diffstat (limited to 'src')
-rw-r--r-- | src/canvasdelete.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/canvasdelete.c b/src/canvasdelete.c index 62a9bf6..5f3f8d1 100644 --- a/src/canvasdelete.c +++ b/src/canvasdelete.c @@ -39,11 +39,13 @@ typedef struct _canvasdelete } t_canvasdelete; static void canvasdelete_doit(t_canvasdelete *x) { + int dspstate= canvas_suspend_dsp(); clock_free(x->x_clock); x->x_clock=NULL; glist_delete(x->x_glist, x->x_gobj); + canvas_resume_dsp(dspstate); } static void canvasdelete_bang(t_canvasdelete *x) |