summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/aucat/dev.h')
-rw-r--r--usr.bin/aucat/dev.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/usr.bin/aucat/dev.h b/usr.bin/aucat/dev.h
index 2f3195d701c..777894ac1d3 100644
--- a/usr.bin/aucat/dev.h
+++ b/usr.bin/aucat/dev.h
@@ -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 <alex@caoua.org>
*
@@ -21,25 +21,33 @@ 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;
+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);