diff options
Diffstat (limited to 'usr.bin/aucat/dev.h')
-rw-r--r-- | usr.bin/aucat/dev.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/usr.bin/aucat/dev.h b/usr.bin/aucat/dev.h index f9a97d31921..2f3195d701c 100644 --- a/usr.bin/aucat/dev.h +++ b/usr.bin/aucat/dev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dev.h,v 1.18 2010/04/03 17:40:33 ratchov Exp $ */ +/* $OpenBSD: dev.h,v 1.19 2010/04/03 17:59:17 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -21,33 +21,25 @@ struct aproc; 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, *dev_submon, *dev_mon; +extern struct aproc *dev_mix, *dev_sub, *dev_midi; 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 *, unsigned, - struct aparams *, struct aparams *, unsigned, unsigned); +int dev_init(char *, 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(unsigned, struct abuf **, struct abuf **); -void dev_sync(unsigned, struct abuf *, struct abuf *); -unsigned dev_getmode(void); +int dev_getep(struct abuf **, struct abuf **); +void dev_sync(struct abuf *, struct abuf *); int dev_getpos(void); -void dev_attach(char *, unsigned, - struct abuf *, struct aparams *, +void dev_attach(char *, + struct abuf *, struct aparams *, unsigned, struct abuf *, struct aparams *, unsigned, int); void dev_setvol(struct abuf *, int); void dev_clear(void); |