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:
parent
bf5f21b622
commit
a0a031aa9e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116388
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user