summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2008-12-28 15:48:32 +0000
committerratchov <ratchov@openbsd.org>2008-12-28 15:48:32 +0000
commit09aec2233ac4d6e7e9d33a4bf0ca79c89dfd908a (patch)
tree11aed961f2b4fef258a1e82cadb1853054565221
parentAdd a ugly workaround for the problem where an invalid AS4_PATH is passed (diff)
downloadwireguard-openbsd-09aec2233ac4d6e7e9d33a4bf0ca79c89dfd908a.tar.xz
wireguard-openbsd-09aec2233ac4d6e7e9d33a4bf0ca79c89dfd908a.zip
set the buffer size using the ``appbufsz'' parameter of
sio_setpar(3). Allows cdio to be used with aucat(1) whatever the buffer size used by aucat is. ok jakemsr
-rw-r--r--usr.bin/cdio/rip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cdio/rip.c b/usr.bin/cdio/rip.c
index 36351468d3b..dd14e04d2ca 100644
--- a/usr.bin/cdio/rip.c
+++ b/usr.bin/cdio/rip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rip.c,v 1.10 2008/12/11 10:59:49 jakemsr Exp $ */
+/* $OpenBSD: rip.c,v 1.11 2008/12/28 15:48:32 ratchov Exp $ */
/*
* Copyright (c) 2007 Alexey Vatchenko <av@bsdua.org>
@@ -474,7 +474,7 @@ play_next_track(struct track_info *info)
info->par.bits = 16;
info->par.sig = 1;
info->par.le = 1;
- info->par.bufsz = info->par.rate * 3 / 4;
+ info->par.appbufsz = info->par.rate * 3 / 4;
if (sio_setpar(info->hdl, &info->par) == 0) {
warnx("could not set audio parameters");