Page MenuHomeFreeBSD

mixer(8): add shorthand syntax for setting the volume
ClosedPublic

Authored by christos on Mar 20 2022, 4:05 PM.
Referenced Files
Unknown Object (File)
Sat, Nov 16, 9:48 PM
Unknown Object (File)
Fri, Nov 15, 7:53 AM
Unknown Object (File)
Tue, Nov 5, 7:01 PM
Unknown Object (File)
Fri, Nov 1, 6:26 AM
Unknown Object (File)
Wed, Oct 30, 1:28 AM
Unknown Object (File)
Tue, Oct 29, 8:00 PM
Unknown Object (File)
Sun, Oct 27, 12:22 AM
Unknown Object (File)
Oct 4 2024, 5:21 AM
Subscribers

Details

Summary

dev.volume=X can now also be written as dev=X.
Requested by hselasky@ and bsduck on a forum conversation.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

usr.sbin/mixer/mixer.c
150

Should this loop also check for "." characters, so that you can either do:

dev=80 or dev = 0.80 ?

--HPS

usr.sbin/mixer/mixer.c
150

It should. I totally forgot about that. My bad :-)

Accept floating point numbers as input.

This revision is now accepted and ready to land.Mar 20 2022, 4:24 PM

Don't push it. I also forgot to add suport for [+|-].