summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/sndiod/dsp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/sndiod/dsp.c b/usr.bin/sndiod/dsp.c
index 7a2a6109865..1a0b0078fe5 100644
--- a/usr.bin/sndiod/dsp.c
+++ b/usr.bin/sndiod/dsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsp.c,v 1.3 2012/12/07 08:04:58 ratchov Exp $ */
+/* $OpenBSD: dsp.c,v 1.4 2014/02/08 15:16:17 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -622,15 +622,13 @@ cmap_copy(struct cmap *p, void *in, void *out, int vol, int todo)
*/
for (i = todo; i > 0; i--) {
idata += istart;
- for (j = ostart; j > 0; j--)
- *odata++ = 0x1111;
+ odata += ostart;
for (j = nch; j > 0; j--) {
*odata = ADATA_MUL(*idata, v);
odata++;
idata++;
}
- for (j = onext; j > 0; j--)
- *odata++ = 0x2222;
+ odata += onext;
idata += inext;
}
}