diff --git a/sndiod/dsp.c b/sndiod/dsp.c index 17b998b..63e8439 100644 --- a/sndiod/dsp.c +++ b/sndiod/dsp.c @@ -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/sndiod/dsp.h b/sndiod/dsp.h index 7c8637d..9f81f84 100644 --- a/sndiod/dsp.h +++ b/sndiod/dsp.h @@ -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) */