diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2014-03-05 20:06:06 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2014-03-05 20:06:06 +0000 |
commit | be18ebc11b727ef464b775268631bd3bc8071b4d (patch) | |
tree | 7da95ef2f904aabb3d280b25df48cca627209078 /usr.bin/sndiod | |
parent | 82ab3f958d22d9d584fea744d3a3c12fc3195ed3 (diff) |
remove (unused) square tone generator
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r-- | usr.bin/sndiod/dsp.c | 23 | ||||
-rw-r--r-- | usr.bin/sndiod/dsp.h | 3 |
2 files changed, 2 insertions, 24 deletions
diff --git a/usr.bin/sndiod/dsp.c b/usr.bin/sndiod/dsp.c index 1a0b0078fe5..b0ab532f489 100644 --- a/usr.bin/sndiod/dsp.c +++ b/usr.bin/sndiod/dsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsp.c,v 1.4 2014/02/08 15:16:17 ratchov Exp $ */ +/* $OpenBSD: dsp.c,v 1.5 2014/03/05 20:06:05 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -685,24 +685,3 @@ cmap_init(struct cmap *p, } #endif } - -/* - * produce a square tone, for instance with: - * - * period = round / (220 * round / rate) - */ -int -sqrtone(int ctx, adata_t *out, int period, int vol, int todo) -{ - int i; - - for (i = todo; i > 0; i--) { - if (ctx == 0) { - vol = -vol; - ctx = period / 2; - } - ctx--; - *(out++) += vol; - } - return ctx; -} diff --git a/usr.bin/sndiod/dsp.h b/usr.bin/sndiod/dsp.h index f582e3bdcec..8b5bb2e4844 100644 --- a/usr.bin/sndiod/dsp.h +++ b/usr.bin/sndiod/dsp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dsp.h,v 1.2 2013/11/18 17:37:45 ratchov Exp $ */ +/* $OpenBSD: dsp.h,v 1.3 2014/03/05 20:06:05 ratchov Exp $ */ /* * Copyright (c) 2012 Alexandre Ratchov <alex@caoua.org> * @@ -157,6 +157,5 @@ void dec_init(struct conv *, struct aparams *, int); void cmap_add(struct cmap *, void *, void *, int, int); void cmap_copy(struct cmap *, void *, void *, int, int); void cmap_init(struct cmap *, int, int, int, int, int, int, int, int); -int sqrtone(int, adata_t *, int, int, int); #endif /* !defined(DSP_H) */ |