From ec714a7e1f655e766e94ad96615dd55ae641d42f Mon Sep 17 00:00:00 2001 From: miko Date: Tue, 18 Sep 2018 06:05:45 +0000 Subject: [PATCH] i forgot to sync sndiod with aucat/dsp.c rev 1.12 --- usr.bin/sndiod/dsp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.bin/sndiod/dsp.c b/usr.bin/sndiod/dsp.c index d0446f10793..a2998d2c579 100644 --- a/usr.bin/sndiod/dsp.c +++ b/usr.bin/sndiod/dsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsp.c,v 1.13 2018/06/08 06:21:56 ratchov Exp $ */ +/* $OpenBSD: dsp.c,v 1.14 2018/09/18 06:05:45 miko Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * @@ -268,14 +268,11 @@ void resamp_init(struct resamp *p, unsigned int iblksz, unsigned int oblksz, int nch) { - unsigned int i; - p->iblksz = iblksz; p->oblksz = oblksz; p->nch = nch; p->ctx_start = 0; - for (i = 0; i < NCHAN_MAX * RESAMP_NCTX; i++) - p->ctx[i] = 0; + memset(p->ctx, 0, sizeof(p->ctx)); #ifdef DEBUG if (log_level >= 3) { log_puts("resamp: "); -- 2.20.1