mirror of https://github.com/ericonr/sndio.git
remove unused function mix_prime()
This commit is contained in:
parent
c7be174526
commit
13d834c5e1
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: aproc.c,v 1.59 2010/05/07 07:15:50 ratchov Exp $ */
|
||||
/* $OpenBSD$ */
|
||||
/*
|
||||
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
|
||||
*
|
||||
|
@ -1083,41 +1083,6 @@ mix_clear(struct aproc *p)
|
|||
obuf->w.mix.todo = 0;
|
||||
}
|
||||
|
||||
void
|
||||
mix_prime(struct aproc *p)
|
||||
{
|
||||
struct abuf *obuf = LIST_FIRST(&p->outs);
|
||||
unsigned todo, count;
|
||||
|
||||
for (;;) {
|
||||
if (!ABUF_WOK(obuf))
|
||||
break;
|
||||
todo = p->u.mix.maxlat - p->u.mix.lat;
|
||||
mix_bzero(obuf, todo);
|
||||
count = obuf->w.mix.todo;
|
||||
if (count > todo)
|
||||
count = todo;
|
||||
if (count == 0)
|
||||
break;
|
||||
obuf->w.mix.todo -= count;
|
||||
p->u.mix.lat += count;
|
||||
abuf_wcommit(obuf, count);
|
||||
if (APROC_OK(p->u.mix.mon))
|
||||
mon_snoop(p->u.mix.mon, obuf, 0, count);
|
||||
abuf_flush(obuf);
|
||||
}
|
||||
#ifdef DEBUG
|
||||
if (debug_level >= 3) {
|
||||
aproc_dbg(p);
|
||||
dbg_puts(": prime: lat/maxlat=");
|
||||
dbg_puti(p->u.mix.lat);
|
||||
dbg_puts("/");
|
||||
dbg_puti(p->u.mix.maxlat);
|
||||
dbg_puts("\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Gracefully terminate the mixer: raise the APROC_QUIT flag
|
||||
* and let the rest of the code do the job. If there are neither
|
||||
|
|
Loading…
Reference in New Issue