OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Jacob Meuser (jakemsrcvs.openbsd.org)
Date: Thu Aug 02 2007 - 02:15:49 CDT


CVSROOT: /cvs
Module name: src
Changes by: jakemsrcvs.openbsd.org 2007/08/02 01:15:49

Modified files:
        sys/dev : audio.c

Log message:
the MI audio layer never really knows what encoding the hardware uses;
the hardware drivers just set a conversion function.

when the MI audio layer needs to add silence, it adds silence in the
userland format, but the amount added is for the hardware sample size.

this diff fixes both record mode by sending the right amount, and
play mode by converting the silence to the right format.