DragonFly commits List (threaded) for 2008-12
DragonFly BSD
DragonFly commits List (threaded) for 2008-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Simon Schubert <corecode@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 1 Dec 2008 15:59:30 -0800 (PST)

commit cb8ff21ad49e7a92c572b31c6e26ad74d0feed5f
Author: Simon Schubert <corecode@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



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