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

Diff for /src/usr.bin/sndiod/dev.h between version 1.4 and 1.5

version 1.4, 2014/03/05 20:24:16 version 1.5, 2014/03/05 20:31:22
Line 48 
Line 48 
                 int weight;                     /* dynamic range */                  int weight;                     /* dynamic range */
                 int maxweight;                  /* max dynamic range allowed */                  int maxweight;                  /* max dynamic range allowed */
                 unsigned int vol;               /* volume within the vol */                  unsigned int vol;               /* volume within the vol */
                 int drop;                       /* to drop on next read */  
                 struct abuf buf;                /* socket side buffer */                  struct abuf buf;                /* socket side buffer */
                 int bpf;                        /* byte per frame */                  int bpf;                        /* byte per frame */
                 int slot_cmin, slot_cmax;       /* slot source chans */                  int slot_cmin, slot_cmax;       /* slot source chans */
Line 61 
Line 60 
                 void *resampbuf, *decbuf;       /* tmp buffers */                  void *resampbuf, *decbuf;       /* tmp buffers */
         } mix;          } mix;
         struct {          struct {
                 int silence;                    /* to add on next write */  
                 struct abuf buf;                /* socket side buffer */                  struct abuf buf;                /* socket side buffer */
                   int prime;                      /* initial cycles to skip */
                 int bpf;                        /* byte per frame */                  int bpf;                        /* byte per frame */
                 int slot_cmin, slot_cmax;       /* slot destination chans */                  int slot_cmin, slot_cmax;       /* slot destination chans */
                 int dev_cmin, dev_cmax;         /* device source chans */                  int dev_cmin, dev_cmax;         /* device source chans */
Line 74 
Line 73 
                 void *resampbuf, *encbuf;       /* tmp buffers */                  void *resampbuf, *encbuf;       /* tmp buffers */
         } sub;          } sub;
         int xrun;                               /* underrun policy */          int xrun;                               /* underrun policy */
           int skip;                               /* cycles to skip (for xrun) */
         int dup;                                /* mono-to-stereo and alike */          int dup;                                /* mono-to-stereo and alike */
 #define SLOT_BUFSZ(s) \  #define SLOT_BUFSZ(s) \
         ((s)->appbufsz + (s)->dev->bufsz / (s)->dev->round * (s)->round)          ((s)->appbufsz + (s)->dev->bufsz / (s)->dev->round * (s)->round)
Line 127 
Line 127 
 #define DEV_NSLOT       8  #define DEV_NSLOT       8
         struct slot slot[DEV_NSLOT];          struct slot slot[DEV_NSLOT];
         unsigned int serial;                    /* for slot allocation */          unsigned int serial;                    /* for slot allocation */
   
           /*
            * current position, relative to the current cycle
            */
           int delta;
   
         /*          /*
          * desired parameters           * desired parameters

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