Print out the current recording devices in the default printout.

Discussed with: cg

Break some particularly long lines.

Still not enough for:  bde.
This commit is contained in:
Greg Lehey 2003-06-15 08:46:04 +00:00
parent bf5f21b622
commit a0a031aa9e

View File

@ -138,10 +138,15 @@ main(int argc, char *argv[])
continue;
}
if (shortflag)
printf("%s %d:%d ", names[foo], bar & 0x7f, (bar >> 8) & 0x7f);
printf("%s %d:%d ", names[foo], bar & 0x7f,
(bar >> 8) & 0x7f);
else
printf("Mixer %-8s is currently set to %3d:%d\n", names[foo], bar & 0x7f, (bar >> 8) & 0x7f);
printf("Mixer %-8s is currently set to %3d:%d\n",
names[foo], bar & 0x7f, (bar >> 8) & 0x7f);
}
if (ioctl(baz, SOUND_MIXER_READ_RECSRC, &recsrc) == -1)
err(1, "SOUND_MIXER_READ_RECSRC");
print_recsrc(recsrc);
return(0);
}
@ -217,7 +222,8 @@ main(int argc, char *argv[])
continue;
}
if (shortflag)
printf("%s %d:%d ", names[dev], bar & 0x7f, (bar >> 8) & 0x7f);
printf("%s %d:%d ", names[dev], bar & 0x7f,
(bar >> 8) & 0x7f);
else
printf("Mixer %-8s is currently set to %3d:%d\n",
names[dev], bar & 0x7f, (bar >> 8) & 0x7f);