-/* $OpenBSD: abuf.h,v 1.7 2008/08/14 09:46:36 ratchov Exp $ */
+/* $OpenBSD: abuf.h,v 1.8 2008/08/14 15:25:16 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
unsigned len; /* size of the ring */
unsigned abspos; /* frame number of the start position */
unsigned silence; /* silence to insert on next write */
- unsigned drop; /* frames to drop on next read */
+ unsigned drop; /* bytes to drop on next read */
struct aproc *rproc; /* reader */
struct aproc *wproc; /* writer */
unsigned char *data; /* actual data (immediately following) */
-/* $OpenBSD: dev.c,v 1.1 2008/08/14 09:58:55 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.2 2008/08/14 15:25:16 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
ibuf->silence += -delta * ibuf->bpf;
}
if (ibuf && (dev_mix->u.mix.flags & MIX_DROP)) {
- DPRINTF("lmkqsjdlkqsjklqsd\n");
/*
* fill the play buffer with silence to avoid underruns,
* drop samples on the input to keep play/record in sync