=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/safile.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- src/usr.bin/aucat/Attic/safile.c 2010/01/11 13:06:32 1.21 +++ src/usr.bin/aucat/Attic/safile.c 2010/01/12 21:42:59 1.22 @@ -1,4 +1,4 @@ -/* $OpenBSD: safile.c,v 1.21 2010/01/11 13:06:32 ratchov Exp $ */ +/* $OpenBSD: safile.c,v 1.22 2010/01/12 21:42:59 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -68,6 +68,15 @@ struct safile *f = (struct safile *)addr; struct aproc *p; +#ifdef DEBUG + if (delta < 0 || delta > (60 * RATE_MAX)) { + dbg_puts(f->file.name); + dbg_puts(": "); + dbg_puti(delta); + dbg_puts(": bogus sndio delta"); + dbg_panic(); + } +#endif if (delta != 0) { p = f->file.wproc; if (p && p->ops->opos)