aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-05-23 16:57:00 +0000
committerN.N. <matju@users.sourceforge.net>2009-05-23 16:57:00 +0000
commite425ad5acdeb1e32d92b2f45ee0c9aa071687c18 (patch)
tree0a461c8afbc95e378282694dfd78593abc235069
parent44b14cd1a4fcb195c916e02f88676607a4c12783 (diff)
fix warning
svn path=/trunk/; revision=11482
-rw-r--r--desiredata/src/builtins_dsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desiredata/src/builtins_dsp.c b/desiredata/src/builtins_dsp.c
index cf2d460e..ee571f59 100644
--- a/desiredata/src/builtins_dsp.c
+++ b/desiredata/src/builtins_dsp.c
@@ -1625,13 +1625,14 @@ static void dac_dsp(t_dac *x, t_signal **sp) {
for (i = x->n, ip = x->vec, sp2 = sp; i--; ip++, sp2++) {
int ch = *ip - 1;
if ((*sp2)->n != sys_dacblocksize) error("dac~: bad vector size");
- else if (ch >= 0 && ch < sys_get_outchannels())
+ else if (ch >= 0 && ch < sys_get_outchannels()) {
if(SIMD_CHECK3(sys_dacblocksize,sys_soundout + sys_dacblocksize*ch, (*sp2)->v,sys_soundout + sys_dacblocksize*ch))
dsp_add(plus_perf_simd, 4, sys_soundout + sys_dacblocksize*ch,
(*sp2)->v, sys_soundout + sys_dacblocksize*ch, sys_dacblocksize);
else
dsp_add(plus_perform, 4, sys_soundout + sys_dacblocksize*ch, (*sp2)->v, sys_soundout + sys_dacblocksize*ch,
sys_dacblocksize);
+ }
}
}
static void dac_free(t_dac *x) {free(x->vec);}