summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/sock.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-04-03 17:40:34 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-04-03 17:40:34 +0000
commit1f1e75a96689e478cf3357f495812c131cb352f9 (patch)
tree4c0138208ad43819ad172abac04aa95589e6b6e9 /usr.bin/aucat/sock.h
parent148d5c4d2674e507ae720da1aa37065cf06a01db (diff)
doc fixes from jmc
Diffstat (limited to 'usr.bin/aucat/sock.h')
-rw-r--r--usr.bin/aucat/sock.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/aucat/sock.h b/usr.bin/aucat/sock.h
index 6ce36e7acac..bc5bfa2607d 100644
--- a/usr.bin/aucat/sock.h
+++ b/usr.bin/aucat/sock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.h,v 1.12 2010/01/15 22:17:44 ratchov Exp $ */
+/* $OpenBSD: sock.h,v 1.13 2010/04/03 17:40:33 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -30,6 +30,8 @@ struct sock {
* to decode/encode messages in the stream.
*/
struct amsg rmsg, wmsg; /* messages being sent/received */
+ unsigned wmax; /* max frames we're allowed to write */
+ unsigned rmax; /* max frames we're allowed to read */
unsigned rtodo; /* input bytes not read yet */
unsigned wtodo; /* output bytes not written yet */
#define SOCK_RDATA 0 /* data chunk being read */
@@ -43,14 +45,17 @@ struct sock {
#define SOCK_HELLO 0 /* waiting for HELLO message */
#define SOCK_INIT 1 /* parameter negotiation */
#define SOCK_START 2 /* filling play buffers */
-#define SOCK_RUN 3 /* attached to the mix / sub */
-#define SOCK_MIDI 4 /* raw byte stream (midi) */
+#define SOCK_READY 3 /* play buffers full */
+#define SOCK_RUN 4 /* attached to the mix / sub */
+#define SOCK_STOP 5 /* draining rec buffers */
+#define SOCK_MIDI 6 /* raw byte stream (midi) */
unsigned pstate; /* one of the above */
unsigned mode; /* a set of AMSG_PLAY, AMSG_REC */
struct aparams rpar; /* read (ie play) parameters */
struct aparams wpar; /* write (ie rec) parameters */
int delta; /* pos. change to send */
int tickpending; /* delta waiting to be transmitted */
+ int startpending; /* initial delta waiting to be transmitted */
unsigned walign; /* align data packets to this */
unsigned bufsz; /* total buffer size */
unsigned round; /* block size */