[BACK]Return to sock.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sndiod

Diff for /src/usr.bin/sndiod/sock.c between version 1.3 and 1.4

version 1.3, 2012/11/30 20:48:00 version 1.4, 2012/12/01 12:13:34
Line 925 
Line 925 
         }          }
         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;
 }  }
Line 1398 
Line 1397 
         }          }
   
         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;
Line 1518 
Line 1516 
                 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);
Line 1555 
Line 1552 
                         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 */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4