=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/dsp.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/sndiod/dsp.c 2014/02/08 15:16:17 1.4 +++ src/usr.bin/sndiod/dsp.c 2014/03/05 20:06:05 1.5 @@ -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 * @@ -684,25 +684,4 @@ log_puts("\n"); } #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; }