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

Diff for /src/usr.bin/aucat/Attic/sock.c between version 1.26 and 1.27

version 1.26, 2009/08/27 06:31:13 version 1.27, 2009/08/27 06:54:23
Line 372 
Line 372 
         struct abuf *rbuf;          struct abuf *rbuf;
   
         f->vol = vol;          f->vol = vol;
         if (f->pstate <= SOCK_START)  
                 f->lastvol = f->vol;  
         rbuf = LIST_FIRST(&f->pipe.file.rproc->obuflist);          rbuf = LIST_FIRST(&f->pipe.file.rproc->obuflist);
         if (!rbuf) {          if (!rbuf) {
                 DPRINTF("sock_setvol: no read buffer yet\n");                  DPRINTF("sock_setvol: no read buffer yet\n");
Line 1004 
Line 1002 
         /*          /*
          * if volume changed build a SETVOL message           * if volume changed build a SETVOL message
          */           */
         if (f->vol != f->lastvol) {          if (f->pstate >= SOCK_START && f->vol != f->lastvol) {
                 DPRINTFN(4, "sock_buildmsg: %p: SETVOL: %d\n", f, f->vol);                  DPRINTFN(4, "sock_buildmsg: %p: SETVOL: %d\n", f, f->vol);
                 AMSG_INIT(&f->wmsg);                  AMSG_INIT(&f->wmsg);
                 f->wmsg.cmd = AMSG_SETVOL;                  f->wmsg.cmd = AMSG_SETVOL;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27