ref: 498f3dda1ee357f1f5d50b1d2bdd3e6cfab6efaa
parent: 7bd941d81d45c454138a8dfd76ee023643f06977
author: robs <robs>
date: Sun Dec 17 07:06:14 EST 2006
Nullify effects when they've nothing to do. But not tested here yet.
--- a/src/avg.c
+++ b/src/avg.c
@@ -501,7 +501,19 @@
return ST_EOF;
}
- return (ST_SUCCESS);
+#if 0 /* TODO: test the following: */
+ if (effp->ininfo.channels != effp->outinfo.channels)
+ return ST_SUCCESS;
+
+ for (i = 0; i < (int)effp->ininfo.channels; ++i)
+ for (j = 0; j < (int)effp->outinfo.channels; ++j)
+ if (avg->sources[i][j] != (i == j))
+ return ST_SUCCESS;
+
+ return ST_EFF_NULL;
+#else
+ return ST_SUCCESS;
+#endif
}
/*