summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod/dsp.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2018-06-08 06:21:57 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2018-06-08 06:21:57 +0000
commit4b7f7492173c096771b25d6a9e9f738648b89b1d (patch)
treefc992d9474323c0d26299d6eb0896e9de3f46007 /usr.bin/sndiod/dsp.h
parent4135462e86406a0f5f83ae5f4bae1e5200602de7 (diff)
Greatly simplify the resampling routine using the fact it processes
exactly one block.
Diffstat (limited to 'usr.bin/sndiod/dsp.h')
-rw-r--r--usr.bin/sndiod/dsp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/sndiod/dsp.h b/usr.bin/sndiod/dsp.h
index e5647b23ceb..3b75a13680f 100644
--- a/usr.bin/sndiod/dsp.h
+++ b/usr.bin/sndiod/dsp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsp.h,v 1.6 2016/10/20 05:29:55 ratchov Exp $ */
+/* $OpenBSD: dsp.h,v 1.7 2018/06/08 06:21:56 ratchov Exp $ */
/*
* Copyright (c) 2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -115,7 +115,6 @@ struct resamp {
unsigned int ctx_start;
adata_t ctx[NCHAN_MAX * RESAMP_NCTX];
unsigned int iblksz, oblksz;
- int diff;
int nch;
};
@@ -146,7 +145,7 @@ int aparams_strtoenc(struct aparams *, char *);
int aparams_enctostr(struct aparams *, char *);
int aparams_native(struct aparams *);
-int resamp_do(struct resamp *, adata_t *, adata_t *, int);
+void resamp_do(struct resamp *, adata_t *, adata_t *, int);
void resamp_init(struct resamp *, unsigned int, unsigned int, int);
void enc_do(struct conv *, unsigned char *, unsigned char *, int);
void enc_sil_do(struct conv *, unsigned char *, int);