* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id$
*/
-#include <ardour/gdither_types_internal.h>
-#include <ardour/gdither.h>
-#include <ardour/noise.h>
+#include "ardour/gdither_types_internal.h"
+#include "ardour/gdither.h"
+#include "ardour/noise.h"
/* this monstrosity is necessary to get access to lrintf() and random().
whoever is writing the glibc headers <cmath> and <cstdlib> should be
}
/* some common case handling code - looks a bit wierd, but it allows
- * the compiler to optiomise out the branches in the inner loop */
+ * the compiler to optimise out the branches in the inner loop */
if (s->bit_depth == 8 && s->dither_depth == 8) {
switch (s->type) {
case GDitherNone:
ss, x, y, MAX_U8, MIN_U8);
break;
}
- } else if (s->bit_depth == s->dither_depth == 16) {
+ } else if (s->bit_depth == 16 && s->dither_depth == 16) {
switch (s->type) {
case GDitherNone:
gdither_innner_loop(GDitherNone, s->channels, 0.0f, SCALE_S16,