summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2010-04-24 14:13:34 +0000
committerratchov <ratchov@openbsd.org>2010-04-24 14:13:34 +0000
commit990b025b3a0341576e4bc4fdd53af590cab26f11 (patch)
tree020d2267ce1bd9afbb286b883cabcfef69a24a2a /lib
parentdon't increment mixer's ``idle'' counter before truncating the (diff)
downloadwireguard-openbsd-990b025b3a0341576e4bc4fdd53af590cab26f11.tar.xz
wireguard-openbsd-990b025b3a0341576e4bc4fdd53af590cab26f11.zip
when probing an encoding of a audio(4) device, don't forget to
set record precision.
Diffstat (limited to 'lib')
-rw-r--r--lib/libsndio/sun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsndio/sun.c b/lib/libsndio/sun.c
index 10ade3d1388..c59faba3f8a 100644
--- a/lib/libsndio/sun.c
+++ b/lib/libsndio/sun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sun.c,v 1.30 2010/04/24 06:15:54 ratchov Exp $ */
+/* $OpenBSD: sun.c,v 1.31 2010/04/24 14:13:34 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -171,6 +171,7 @@ sun_tryinfo(struct sun_hdl *hdl, struct sio_enc *enc,
aui.record.encoding = AUDIO_ENCODING_ULINEAR_BE;
}
aui.play.precision = enc->bits;
+ aui.record.precision = enc->bits;
}
if (pchan)
aui.play.channels = pchan;