summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2009-01-16 23:07:34 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2009-01-16 23:07:34 +0000
commit1866e6e3935a9ce08423083be8a6677c6414f0da (patch)
treef57e4ac5f35136e9b4a5c967b55c442b6d8f325e /share
parentefbc35a73268753d223e46df23451e11b363c6fa (diff)
deal with sample precisions that are not a power of 2.
discussed with and ok ratchov; manpage tweak from naddy, thanks
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/audio.415
1 files changed, 13 insertions, 2 deletions
diff --git a/share/man/man4/audio.4 b/share/man/man4/audio.4
index 5862446b7fa..0a3fbeb4b7a 100644
--- a/share/man/man4/audio.4
+++ b/share/man/man4/audio.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: audio.4,v 1.57 2008/10/27 07:53:24 jmc Exp $
+.\" $OpenBSD: audio.4,v 1.58 2009/01/16 23:07:33 jakemsr Exp $
.\" $NetBSD: audio.4,v 1.20 1998/05/28 17:27:15 augustss Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: October 27 2008 $
+.Dd $Mdocdate: January 16 2009 $
.Dt AUDIO 4
.Os
.Sh NAME
@@ -441,6 +441,17 @@ unsigned linear encoding with big endian byte order
.El
.Pp
The
+.Va precision
+parameter describes the number of bits of audio data per sample.
+For ample formats such as 8, 16 and 32-bit, where the number of audio data
+bits is a power of 2,
+.Va precision
+is also exactly the size of each sample.
+For other sample formats the sample size is the smallest power of
+2 bits that the data can fit into.
+For example the sample size of 20 and 24-bit formats is 32 bits.
+.Pp
+The
.Va gain ,
.Va port ,
and