diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2014-02-08 15:16:18 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2014-02-08 15:16:18 +0000 |
commit | f84b2796417534ff00b719f7f7c97ce81cece49e (patch) | |
tree | 3be09e87096f2bb99ee63dacc2f5efc830c1809c | |
parent | adc761af4a580a35735b75c84e8a11fa884c3572 (diff) |
remove debug bits: dont fill with junk unused channels
-rw-r--r-- | usr.bin/sndiod/dsp.c | 8 |
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; } } |