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

Diff for /src/usr.bin/aucat/Attic/aparams.c between version 1.6 and 1.7

version 1.6, 2009/01/23 17:38:15 version 1.7, 2009/07/25 10:52:18
Line 43 
Line 43 
   
 /*  /*
  * Generate a string corresponding to the encoding in par,   * Generate a string corresponding to the encoding in par,
  * return the length of the resulting string   * return the length of the resulting string.
  */   */
 int  int
 aparams_enctostr(struct aparams *par, char *ostr)  aparams_enctostr(struct aparams *par, char *ostr)
Line 73 
Line 73 
   
 /*  /*
  * Parse an encoding string, examples: s8, u8, s16, s16le, s24be ...   * Parse an encoding string, examples: s8, u8, s16, s16le, s24be ...
  * set *istr to the char following the encoding. Retrun the number   * set *istr to the char following the encoding. Return the number
  * of bytes consumed   * of bytes consumed.
  */   */
 int  int
 aparams_strtoenc(struct aparams *par, char *istr)  aparams_strtoenc(struct aparams *par, char *istr)
Line 115 
Line 115 
         le = NATIVE_LE;          le = NATIVE_LE;
   
         /*          /*
          * get (optionnal) endianness           * get (optional) endianness
          */           */
         if (p[0] == 'l' && p[1] == 'e') {          if (p[0] == 'l' && p[1] == 'e') {
                 le = 1;                  le = 1;
Line 129 
Line 129 
                 return 0;                  return 0;
   
         /*          /*
          * get (optionnal) number of bytes           * get (optional) number of bytes
          */           */
         if (*p >= '0' && *p <= '9') {          if (*p >= '0' && *p <= '9') {
                 bps = *p - '0';                  bps = *p - '0';
Line 139 
Line 139 
                 p++;                  p++;
   
                 /*                  /*
                  * get (optionnal) alignement                   * get (optional) alignement
                  */                   */
                 if (p[0] == 'm' && p[1] == 's' && p[2] == 'b') {                  if (p[0] == 'm' && p[1] == 's' && p[2] == 'b') {
                         msb = 1;                          msb = 1;
Line 234 
Line 234 
 }  }
   
 /*  /*
  * Retrurn true if first channel range includes second range   * Return true if first channel range includes second range.
  */   */
 int  int
 aparams_subset(struct aparams *subset, struct aparams *set)  aparams_subset(struct aparams *subset, struct aparams *set)
Line 243 
Line 243 
 }  }
   
 /*  /*
  * grow channels range and sample rate of ``set'' in order ``subset'' to   * Grow channels range and sample rate of ``set'' in order ``subset'' to
  * become an actual subset of it.   * become an actual subset of it.
  */   */
 void  void
Line 258 
Line 258 
 }  }
   
 /*  /*
  * Return true if rates are the same   * Return true if rates are the same.
  */   */
 int  int
 aparams_eqrate(struct aparams *p1, struct aparams *p2)  aparams_eqrate(struct aparams *p1, struct aparams *p2)

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7