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

Diff for /src/usr.bin/audioctl/audioctl.c between version 1.8 and 1.9

version 1.8, 2002/12/13 16:36:52 version 1.9, 2003/04/16 01:36:39
Line 295 
Line 295 
         if (ioctl(fd, AUDIO_GETDEV, &adev) < 0)          if (ioctl(fd, AUDIO_GETDEV, &adev) < 0)
                 err(1, "AUDIO_GETDEV");                  err(1, "AUDIO_GETDEV");
         for(;;) {          for(;;) {
                audio_encoding_t enc;                  audio_encoding_t enc;
                enc.index = i++;                  enc.index = i++;
                if (ioctl(fd, AUDIO_GETENC, &enc) < 0)                  if (ioctl(fd, AUDIO_GETENC, &enc) < 0)
                        break;                          break;
                if (pos)                  if (pos)
                        encbuf[pos++] = ',';                          encbuf[pos++] = ',';
                pos += snprintf(encbuf+pos, sizeof(encbuf)-pos, "%s:%d%s",                  snprintf(encbuf+pos, sizeof(encbuf)-pos, "%s:%d%s",
                                enc.name, enc.precision,                      enc.name, enc.precision,
                                enc.flags & AUDIO_ENCODINGFLAG_EMULATED ? "*" : "");                      enc.flags & AUDIO_ENCODINGFLAG_EMULATED ? "*" : "");
                   pos += strlen(encbuf+pos);
         }          }
         if (ioctl(fd, AUDIO_GETFD, &fullduplex) < 0)          if (ioctl(fd, AUDIO_GETFD, &fullduplex) < 0)
                 err(1, "AUDIO_GETFD");                  err(1, "AUDIO_GETFD");

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9