[PATCH 1/2] pactl: Accept more volume specification formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2011-03-24 at 13:07 +0000, Colin Guthrie wrote:
> 'Twas brillig, and Maarten Bosmans at 24/03/11 12:44 did gyre and gimble:
> > 2011/3/24 Maarten Bosmans <mkbosmans at gmail.com>:
> >> With this you can specify the volume with 6554, 10%, 0.001 or -60dB,
> >> all resulting in the same volume change.
> > 
> > I was also going to add relative volumes, such as +3dB and -5%, by
> > detecting a + or - sign in the volume. But that clashes with the
> > absolute dB scale (insofar a dB can ever be absolute) that can also be
> > negative.
> > 
> > Any suggestions for graceful handling of this?
> 
> How about if the first letter of the volume change is an "i" or a "d"
> then this indicated increment or decrement relative volume?
> 
> It's not as clean as the +/- labelling sadly but such is life.
> 
> Alternatively your absolute dB volumes could be specified as "60-dB" or
> "7+dB" (where 7dB implies "7+dB")... That way the prefix +/- notation
> could be used for relative adjustments. The only downside there is that
> setting absolute dB volumes is more confusing (you'd never need to use
> anything other than XdB for relative adjustments anyway).
> 
> Personally I'd go for the later as I think relative adjustments are
> probably more common, so it's syntax should be "neatest", but I could be
> very wrong :D

Or maybe just do this as a separate set-volume-step command (or
-increment or something better named)?

-- Arun




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux