falconindy / ponymix

CLI volume control for PulseAudio
MIT License
177 stars 27 forks source link

incrementing by dB #33

Open holomorph opened 9 years ago

holomorph commented 9 years ago

Feature request for allowing incrementing by dB. I'm most interested in just being able to increment in the dB scale, as there is a big difference between the linear and log volume scaling.

Since there are things in pulse for converting between percent and dB, it shouldn't be too weird; however, ponymix seems to use integer percents, so that might have to change for dB to work well.

falconindy commented 9 years ago

I don't expect that I'll add this myself, but I'd take a patchset which implements it. Ideally, there shouldn't need to be any CLI changes, it would simply grow to accept tokens like 5 or 5% (for the existing behavior and backwards compat), and 5dB (probably case insensitive) to allow adjustments by decibels.

holomorph commented 9 years ago

Thanks, I'll take a whack at it.