From f84b2796417534ff00b719f7f7c97ce81cece49e Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 8 Feb 2014 15:16:18 +0000 Subject: remove debug bits: dont fill with junk unused channels --- usr.bin/sndiod/dsp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.bin/sndiod/dsp.c') 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 * @@ -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; } } -- cgit v1.2.3