[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.57 and 1.58

version 1.57, 2009/02/04 20:35:14 version 1.58, 2009/02/06 08:26:34
Line 458 
Line 458 
                 errx(1, "can't use -l, -m and -s with -o or -i");                  errx(1, "can't use -l, -m and -s with -o or -i");
         if (!mode) {          if (!mode) {
                 if (l_flag || !SLIST_EMPTY(&ifiles))                  if (l_flag || !SLIST_EMPTY(&ifiles))
                 mode |= MODE_PLAY;                          mode |= MODE_PLAY;
                 if (l_flag || !SLIST_EMPTY(&ofiles))                  if (l_flag || !SLIST_EMPTY(&ofiles))
                         mode |= MODE_REC;                          mode |= MODE_REC;
                   if (!mode)
                           errx(1, "nothing to play or record");
         }          }
         if (n_flag) {          if (n_flag) {
                 if (devpath != NULL || l_flag)                  if (devpath != NULL || l_flag)
Line 536 
Line 538 
         if (n_flag) {          if (n_flag) {
                 dev_loopinit(&dipar, &dopar, bufsz);                  dev_loopinit(&dipar, &dopar, bufsz);
         } else {          } else {
                 dev_init(devpath,                  if (!dev_init(devpath,
                     (mode & MODE_REC) ? &dipar : NULL,                          (mode & MODE_REC) ? &dipar : NULL,
                     (mode & MODE_PLAY) ? &dopar : NULL,                          (mode & MODE_PLAY) ? &dopar : NULL,
                     bufsz);                          bufsz)) {
                           errx(1, "%s: can't open device",
                               devpath ? devpath : "<default>");
                   }
         }          }
   
         /*          /*

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58