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

Diff for /src/usr.bin/aucat/aucat.c between version 1.102 and 1.103

version 1.102, 2010/07/31 08:48:01 version 1.103, 2010/08/19 06:31:06
Line 277 
Line 277 
         struct cfstr *cs;          struct cfstr *cs;
         unsigned hdr;          unsigned hdr;
   
         if (strcmp(path, "-") == 0) {          if (templ->hdr == HDR_AUTO) {
                 path = NULL;  
                 hdr = HDR_RAW;  
         } else if (templ->hdr == HDR_AUTO) {  
                 len = strlen(path);                  len = strlen(path);
                 if (len >= 4 && strcasecmp(path + len - 4, ".wav") == 0)                  if (len >= 4 && strcasecmp(path + len - 4, ".wav") == 0)
                         hdr = HDR_WAV;                          hdr = HDR_WAV;
Line 722 
Line 719 
                         SLIST_REMOVE_HEAD(&cd->ins, entry);                          SLIST_REMOVE_HEAD(&cd->ins, entry);
                         if (!cs->mmc)                          if (!cs->mmc)
                                 autostart = 1;                                  autostart = 1;
                           if (strcmp(cs->path, "-") == 0)
                                   cs->path = NULL;
                         if (!wav_new_in(&wav_ops, d, cs->mode & MODE_PLAY,                          if (!wav_new_in(&wav_ops, d, cs->mode & MODE_PLAY,
                                 cs->path, cs->hdr, &cs->ipar, cs->xrun,                                  cs->path, cs->hdr, &cs->ipar, cs->xrun,
                                 cs->vol, cs->mmc, cs->join))                                  cs->vol, cs->mmc, cs->join))
Line 733 
Line 732 
                         SLIST_REMOVE_HEAD(&cd->outs, entry);                          SLIST_REMOVE_HEAD(&cd->outs, entry);
                         if (!cs->mmc)                          if (!cs->mmc)
                                 autostart = 1;                                  autostart = 1;
                           if (strcmp(cs->path, "-") == 0)
                                   cs->path = NULL;
                         if (!wav_new_out(&wav_ops, d, cs->mode & MODE_RECMASK,                          if (!wav_new_out(&wav_ops, d, cs->mode & MODE_RECMASK,
                                 cs->path, cs->hdr, &cs->opar, cs->xrun,                                  cs->path, cs->hdr, &cs->opar, cs->xrun,
                                 cs->mmc, cs->join))                                  cs->mmc, cs->join))

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.103