version 1.64, 2011/04/28 07:20:03 |
version 1.65, 2011/05/26 07:18:40 |
|
|
}; |
}; |
|
|
struct aproc * |
struct aproc * |
mix_new(char *name, int maxlat, unsigned round) |
mix_new(char *name, int maxlat, unsigned round, unsigned autovol) |
{ |
{ |
struct aproc *p; |
struct aproc *p; |
|
|
|
|
p->u.mix.maxlat = maxlat; |
p->u.mix.maxlat = maxlat; |
p->u.mix.ctl = NULL; |
p->u.mix.ctl = NULL; |
p->u.mix.mon = NULL; |
p->u.mix.mon = NULL; |
|
p->u.mix.autovol = autovol; |
return p; |
return p; |
} |
} |
|
|
|
|
unsigned n; |
unsigned n; |
struct abuf *i, *j; |
struct abuf *i, *j; |
int weight; |
int weight; |
|
|
|
if (!p->u.mix.autovol) |
|
return; |
|
|
/* |
/* |
* count the number of inputs. If a set of inputs |
* count the number of inputs. If a set of inputs |