version 1.69, 2012/01/10 08:10:21 |
version 1.70, 2012/03/23 11:59:54 |
|
|
}; |
}; |
|
|
struct aproc * |
struct aproc * |
mix_new(char *name, int maxlat, unsigned round, unsigned autovol) |
mix_new(char *name, int maxlat, unsigned round, |
|
unsigned autovol, unsigned master) |
{ |
{ |
struct aproc *p; |
struct aproc *p; |
|
|
|
|
p->u.mix.maxlat = maxlat; |
p->u.mix.maxlat = maxlat; |
p->u.mix.mon = NULL; |
p->u.mix.mon = NULL; |
p->u.mix.autovol = autovol; |
p->u.mix.autovol = autovol; |
|
p->u.mix.master = master; |
return p; |
return p; |
} |
} |
|
|
|
|
} |
} |
if (weight > i->r.mix.maxweight) |
if (weight > i->r.mix.maxweight) |
weight = i->r.mix.maxweight; |
weight = i->r.mix.maxweight; |
i->r.mix.weight = weight; |
i->r.mix.weight = ADATA_MUL(weight, p->u.mix.master); |
#ifdef DEBUG |
#ifdef DEBUG |
if (debug_level >= 3) { |
if (debug_level >= 3) { |
abuf_dbg(i); |
abuf_dbg(i); |