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

Diff for /src/usr.bin/aucat/abuf.h between version 1.16 and 1.17

version 1.16, 2009/02/13 20:48:49 version 1.17, 2009/07/25 08:44:27
Line 43 
Line 43 
         unsigned xrun;          /* common to mix and sub */          unsigned xrun;          /* common to mix and sub */
         LIST_ENTRY(abuf) ient;  /* for mix inputs list */          LIST_ENTRY(abuf) ient;  /* for mix inputs list */
         LIST_ENTRY(abuf) oent;  /* for sub outputs list */          LIST_ENTRY(abuf) oent;  /* for sub outputs list */
           unsigned mstatus;       /* MIDI running status */
           unsigned mindex;        /* current MIDI message size */
           unsigned mused;         /* bytes used from mdata */
           unsigned mlen;          /* MIDI message length */
   #define MDATA_NMAX 16
           unsigned char mdata[MDATA_NMAX]; /* MIDI message data */
           unsigned mtickets;      /* max data to transmit (throttling) */
   
         /*          /*
          * fifo parameters           * fifo parameters
Line 74 
Line 81 
 #define ABUF_WOK(b) ((b)->len - (b)->used >= (b)->bpf)  #define ABUF_WOK(b) ((b)->len - (b)->used >= (b)->bpf)
   
 /*  /*
  * the buffer is empty and has no more writer   * the buffer is empty and has no writer anymore
  */   */
 #define ABUF_EOF(b) (!ABUF_ROK(b) && (b)->wproc == NULL)  #define ABUF_EOF(b) (!ABUF_ROK(b) && (b)->wproc == NULL)
   
 /*  /*
  * the buffer is empty and has no more writer   * the buffer has no reader anymore, note that it's not
    * enough the buffer to be disconnected, because it can
    * be not yet connected buffer (eg. socket play buffer)
  */   */
 #define ABUF_HUP(b) (!ABUF_WOK(b) && (b)->rproc == NULL)  #define ABUF_HUP(b) (!ABUF_WOK(b) && (b)->rproc == NULL)
   

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17