summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-12-28 15:48:33 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-12-28 15:48:33 +0000
commit2cbee76203c9db84a8aa39ac13b96fbbdcc798d2 (patch)
treedb743d28eb19e05586fb231799ead55e18a86711 /usr.bin
parented1e5f387f21fb890d7942a290d779465b7472e9 (diff)
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
Diffstat (limited to 'usr.bin')
-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");