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

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

version 1.6, 2009/04/22 10:57:33 version 1.7, 2009/07/25 10:52:19
Line 23 
Line 23 
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   
 #include "conf.h"  
 #include "aparams.h"  #include "aparams.h"
   #include "conf.h"
 #include "wav.h"  #include "wav.h"
   
 /*  /*
  * encoding IDs used in .wav headers   * Encoding IDs used in .wav headers.
  */   */
 #define WAV_ENC_PCM     1  #define WAV_ENC_PCM     1
 #define WAV_ENC_ALAW    6  #define WAV_ENC_ALAW    6
Line 213 
Line 213 
                 datasz = 0;                  datasz = 0;
   
         /*          /*
          * check that encoding is supported by .wav file format           * Check that encoding is supported by .wav file format.
          */           */
         if (par->bits > 8 && !par->le) {          if (par->bits > 8 && !par->le) {
                 warnx("samples must be little endian");                  warnx("samples must be little endian");
Line 224 
Line 224 
                 return 0;                  return 0;
         }          }
         if ((par->bits <= 8 && par->sig) || (par->bits > 8 && !par->sig)) {          if ((par->bits <= 8 && par->sig) || (par->bits > 8 && !par->sig)) {
                 warnx("samples with more (less) than 8 bits must be signed (unsigned)");                  warnx("samples with more (less) than 8 bits must be signed "
                       "(unsigned)");
                 return 0;                  return 0;
         }          }
         if (8 * par->bps != par->bits && !par->msb) {          if (8 * par->bps != par->bits && !par->msb) {

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