=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/dev.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- src/usr.bin/aucat/Attic/dev.h 2010/04/03 17:59:17 1.19 +++ src/usr.bin/aucat/Attic/dev.h 2010/04/06 20:07:01 1.20 @@ -1,4 +1,4 @@ -/* $OpenBSD: dev.h,v 1.19 2010/04/03 17:59:17 ratchov Exp $ */ +/* $OpenBSD: dev.h,v 1.20 2010/04/06 20:07:01 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -21,25 +21,33 @@ struct aparams; struct abuf; +#define DEV_INIT 0 +#define DEV_START 1 +#define DEV_RUN 2 +#define DEV_STOP 3 + +extern unsigned dev_pstate; extern unsigned dev_bufsz, dev_round, dev_rate; extern struct aparams dev_ipar, dev_opar; -extern struct aproc *dev_mix, *dev_sub, *dev_midi; +extern struct aproc *dev_mix, *dev_sub, *dev_midi, *dev_submon, *dev_mon; void dev_thruinit(void); int dev_thruadd(char *, int, int); void dev_midiattach(struct abuf *, struct abuf *); unsigned dev_roundof(unsigned); void dev_loopinit(struct aparams *, struct aparams *, unsigned); -int dev_init(char *, struct aparams *, struct aparams *, unsigned, unsigned); +int dev_init(char *, unsigned, + struct aparams *, struct aparams *, unsigned, unsigned); void dev_start(void); void dev_stop(void); void dev_run(int); void dev_done(void); -int dev_getep(struct abuf **, struct abuf **); -void dev_sync(struct abuf *, struct abuf *); +int dev_getep(unsigned, struct abuf **, struct abuf **); +void dev_sync(unsigned, struct abuf *, struct abuf *); +unsigned dev_getmode(void); int dev_getpos(void); -void dev_attach(char *, - struct abuf *, struct aparams *, unsigned, +void dev_attach(char *, unsigned, + struct abuf *, struct aparams *, struct abuf *, struct aparams *, unsigned, int); void dev_setvol(struct abuf *, int); void dev_clear(void);