version 1.3, 2012/11/30 20:48:00 |
version 1.4, 2012/12/01 12:13:34 |
|
|
} |
} |
s->mix.maxweight = f->opt->maxweight; |
s->mix.maxweight = f->opt->maxweight; |
s->dup = f->opt->dup; |
s->dup = f->opt->dup; |
/* XXX: must convert to slot rate */ |
|
f->slot = s; |
f->slot = s; |
return 1; |
return 1; |
} |
} |
|
|
} |
} |
|
|
if (f->midi != NULL && f->midi->obuf.used > 0) { |
if (f->midi != NULL && f->midi->obuf.used > 0) { |
/* XXX: use tickets */ |
|
size = f->midi->obuf.used; |
size = f->midi->obuf.used; |
if (size > AMSG_DATAMAX) |
if (size > AMSG_DATAMAX) |
size = AMSG_DATAMAX; |
size = AMSG_DATAMAX; |
|
|
f->wtodo = sizeof(struct amsg); |
f->wtodo = sizeof(struct amsg); |
f->rstate = SOCK_RMSG; |
f->rstate = SOCK_RMSG; |
f->rtodo = sizeof(struct amsg); |
f->rtodo = sizeof(struct amsg); |
/* XXX: call sock_wmsg() ? */ |
|
#ifdef DEBUG |
#ifdef DEBUG |
if (log_level >= 4) { |
if (log_level >= 4) { |
sock_log(f); |
sock_log(f); |
|
|
f->wtodo = 0xdeadbeef; |
f->wtodo = 0xdeadbeef; |
break; |
break; |
} |
} |
/* |
|
* XXX: why not set f->wtodo in sock_wmsg() ? |
|
*/ |
|
f->wstate = SOCK_WDATA; |
f->wstate = SOCK_WDATA; |
f->wsize = f->wtodo = ntohl(f->wmsg.u.data.size); |
f->wsize = f->wtodo = ntohl(f->wmsg.u.data.size); |
/* PASSTHROUGH */ |
/* PASSTHROUGH */ |