1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

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
This commit is contained in:
ratchov 2008-12-28 15:48:32 +00:00
parent ca293aa516
commit 09aec2233a

View File

@ -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");