master: sys/dev/sound/pcm/vchan.c cb8ff21ad49e7a92c572b31c6e26ad74d0feed5f

Simon Schubert corecode at crater.dragonflybsd.org
Mon Dec 1 16:01:03 PST 2008


commit cb8ff21ad49e7a92c572b31c6e26ad74d0feed5f
Author: Simon Schubert <corecode at dragonflybsd.org>
Date:   Tue Dec 2 00:52:00 2008 +0100

    Perform logarithmic volume control for vchans
    
    Previously we (and FreeBSD) would do a linear amplitude scaling, which
    does not follow the natural expectation of a user.  Now volume knobs
    actually behave like real life ones.
    
    The curve is close enough to a sqare root, but whatever.
    
    Inspired by 4front's opensound BSDL'd mixer code (which does the
    opposite, i.e. converting log values to human linear scale).

Summary of changes:
 sys/dev/sound/pcm/vchan.c |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/?p=dragonfly.git;a=commitdiff;h=cb8ff21ad49e7a92c572b31c6e26ad74d0feed5f

-- 
DragonFly BSD source repository





More information about the Commits mailing list