Commit Graph

28 Commits

Author SHA1 Message Date
Alexandre Ratchov a3a868da74 prime buffers with silence; make flow control start with zero
maxwrite
2012-11-07 08:48:35 +01:00
Alexandre Ratchov b7818cbbce fix flowctl causing deadlocks 2012-10-28 15:36:57 +01:00
Alexandre Ratchov b97efa105d arpa/net.h is not needed 2012-10-26 16:51:09 +02:00
Alexandre Ratchov 52d941c80b include arpa/inet.h 2012-10-26 16:41:36 +02:00
Alexandre Ratchov ea0d66a62d add explicit flow control in the protocol and use it for both midi and audio 2012-10-24 12:45:13 +02:00
Alexandre Ratchov 49feb9131a include arpa/inet.h to get byte order conv 2012-10-06 12:29:02 +02:00
Alexandre Ratchov 10efdd93f3 In the "reply" code path, lock the socket while invoking the
write-end code from the read-end code, and don't forget to check
if the socket was not destroyed. Fixes very rare random crashes.
2012-04-17 16:34:54 +02:00
Alexandre Ratchov 1247c187a7 s/unsigned/unsigned int/g, requested by deraadt 2012-04-11 09:21:29 +02:00
Alexandre Ratchov 37baea58d8 move mmc/mtc and volume control bits from struct aproc to struct dev 2011-11-21 09:06:25 +01:00
Alexandre Ratchov 73d8f28428 always create a default device in server mode 2011-11-14 09:29:33 +01:00
Alexandre Ratchov e4ef0dc8d9 switch to type@hostname,unit/num.opt device names 2011-11-01 13:02:13 +01:00
Alexandre Ratchov 0778d29b61 factor tests for f->opt->join flag, no behaviour change 2011-06-03 18:47:34 +02:00
Alexandre Ratchov 5f53917840 remove getpeereid 2011-05-06 13:12:01 +02:00
Alexandre Ratchov 924405f763 fix and add missing "auth" in debug strings 2011-05-01 15:34:21 +02:00
Alexandre Ratchov 134bc5d779 convert messages headers to network byte order to allow
client and server with different byte orders to work
2011-05-01 15:29:56 +02:00
Alexandre Ratchov 6c7f04bf10 no need to call getpeereid() anymore 2011-04-18 11:25:56 +02:00
Alexandre Ratchov 0663ca6f54 use a cookie for authentication 2011-04-16 18:30:24 +02:00
Alexandre Ratchov fe6209ee49 stop using and remove AMSG_GETCAP message 2011-04-16 13:18:06 +02:00
Alexandre Ratchov 77a2cf5acb use AMSG_DATA's for midi 2011-04-15 18:02:18 +02:00
Alexandre Ratchov 1be9a4da0b reply with a AMSG_STOP to AMSG_STOP and bump version 2011-04-12 10:38:24 +02:00
Alexandre Ratchov 7043f22059 better debug message 2011-03-30 18:41:05 +02:00
Alexandre Ratchov cc6dd11c37 don't print 0xdeadbeef in the WIDLE state 2011-03-30 18:37:18 +02:00
Alexandre Ratchov c70f456e5c call sock_write() at the end of sock_read() in order to send
ACKs, initial positions, volumes and alikes. It's not OK to
call it in sock_execmsg() because it can generate messages
that would be sent before the message to return
2011-03-30 18:28:32 +02:00
Alexandre Ratchov 4ba7c28c93 Replace ``short'' by a new ``adata_t'' typedef corresponding to
audio samples and cleanup ADATA_XXX macros. This allows easilly
switching to 24 bit fixed point arithmetic by simply redefining
the adata_t typedef to int and updating ADATA_XXX macros. No
object change.
2010-11-04 18:56:53 +01:00
Alexandre Ratchov 9ab5fcf177 fix comments 2010-10-18 19:32:52 +02:00
Alexandre Ratchov fa5a65f0d9 cleanup modes, no behaviour change 2010-09-29 15:54:32 +02:00
Alexandre Ratchov a17607cf7a add initial alsa support from jakemsr 2010-08-19 23:00:06 +02:00
Alexandre Ratchov f268454989 import from OpenBSD 2010-08-19 22:38:45 +02:00