From 4b106b8af0d7d4217dd1937dd7396d46b5d73a08 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sun, 2 May 2010 11:54:28 +0000 Subject: Clean up device handling code to clarify different initialization phases and different device states. Split initialization in two phases: first global variables are initialized then the audio hardware is opened. Allow devices that don't support full-duplex to work in play-only or record-only mode, even if ``-m play'' or ``-m rec'' are not specified. --- usr.bin/aucat/siofile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/aucat/siofile.h') diff --git a/usr.bin/aucat/siofile.h b/usr.bin/aucat/siofile.h index 7f72255a347..c2242887b2e 100644 --- a/usr.bin/aucat/siofile.h +++ b/usr.bin/aucat/siofile.h @@ -1,4 +1,4 @@ -/* $OpenBSD: siofile.h,v 1.4 2010/04/06 20:07:01 ratchov Exp $ */ +/* $OpenBSD: siofile.h,v 1.5 2010/05/02 11:54:26 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -22,7 +22,7 @@ struct siofile; struct aparams; struct aproc; -struct siofile *siofile_new(struct fileops *, char *, unsigned, +struct siofile *siofile_new(struct fileops *, char *, unsigned *, struct aparams *, struct aparams *, unsigned *, unsigned *); struct aproc *rsio_new(struct file *f); struct aproc *wsio_new(struct file *f); -- cgit v1.2.3