Alexandre Ratchov
27da5245d0
sndiod: use CLOCK_UPTIME when available
2018-03-18 14:38:27 +01:00
Alexandre Ratchov
a48a424901
add portability bits for OS X
2017-03-27 12:34:26 +02:00
Alexandre Ratchov
bcb3014206
Fix many typos in comments, from Michael W. Bombardieri <mb at ii.net>
2016-10-27 06:38:21 +02:00
Alexandre Ratchov
74bbedaf28
better poll logging
2016-01-29 12:12:19 +01:00
Alexandre Ratchov
f1cde9ea14
crank max timeout to 60s
2016-01-20 11:57:59 +01:00
Alexandre Ratchov
e22e6a1b26
fix trailing spaces
2016-01-08 17:24:48 +01:00
Alexandre Ratchov
4fdefa70d7
remove redundant debug message
2016-01-08 11:48:26 +01:00
Alexandre Ratchov
3b3a64a4fc
Don't calculate clock deltas is there are no time-outs. Removes (harmless)
...
warnings about out-of-bounds clock deltas.
2016-01-08 11:45:01 +01:00
Alexandre Ratchov
5219e9d39d
Warn about huge clock ticks only if there are time-outs
2016-01-05 09:43:13 +01:00
Alexandre Ratchov
8af6aa7130
panic if CLOCK_MONOTONIC is unsupported
2015-12-22 13:17:00 +01:00
Alexandre Ratchov
02a873aace
use err() on init and log_xxx() at runtime
2015-12-17 15:59:03 +01:00
Alexandre Ratchov
0ab68bae61
comment that -1 means infinite timeout
2015-08-27 09:40:50 +02:00
Alexandre Ratchov
30c199e808
Don't call poll(2) with few millisecond time-out argument when -1
...
could be used. Avoids syscalls when the daemon is not being used.
2015-08-11 19:49:07 +02:00
Alexandre Ratchov
4ca9db857c
Process polled files in two steps: first files that need immediate
...
handling, which would block.
2015-07-20 12:09:53 +02:00
Alexandre Ratchov
2d77ef48f3
rename nfds to max_nfds, no object change
2015-07-17 11:51:31 +02:00
Alexandre Ratchov
9624f2332e
Simplify debug info: log poll descriptors on a single line, record
...
timestamps only when they are needed.
2015-07-17 11:37:24 +02:00
Alexandre Ratchov
5c54742a5d
Stop using interval timers (not inherited by fork(2), obsolete in
...
newer posix releases), use the poll(2) timeout parameter instead.
Fixes hangs during clean-up after the audio device is disconnected
or an unrecoverable error is detected. Suggested by and discussed
with millert@.
2015-07-17 10:16:59 +02:00
Alexandre Ratchov
b20e28a66e
merge from openbsd: typos, use of O_CLOEXEC, _sndio_debug fix
2014-08-19 16:05:29 +02:00
Alexandre Ratchov
fa8d95b2fa
make i, n, nfds of the same type
2014-08-10 14:05:58 +02:00
Alexandre Ratchov
da8108f09a
add initial support for audio mixers, disabled by default
...
ok armani@
2014-07-16 12:05:01 +02:00
Alexandre Ratchov
5543797422
log the correct file state string
2014-03-07 17:35:05 +01:00
Alexandre Ratchov
b1c417ab04
add prototypes
2013-11-18 17:50:04 +01:00
Alexandre Ratchov
55c6148e0b
don't call revents on zombified files
2013-01-05 16:21:48 +01:00
Alexandre Ratchov
a17e696708
move log_level to utils.c
2012-12-06 15:35:17 +01:00
Alexandre Ratchov
c875716078
ignored clock delta -> log_level 2
2012-11-11 10:42:47 +01:00
Alexandre Ratchov
dc522e703f
cleanup debug traces
2012-11-11 01:46:38 +01:00
Alexandre Ratchov
40cf11d689
simplify xmalloc & friends
2012-11-11 00:47:00 +01:00
Alexandre Ratchov
6b88502d9a
fix copyright years
2012-11-10 14:58:53 +01:00
Alexandre Ratchov
5142109f22
make file i/o able to cross fifo bundary
2012-11-03 17:30:30 +01:00
Alexandre Ratchov
ab4a96fb39
fix signedness warnings
2012-10-24 14:53:37 +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
f29564da69
better xmalloc from midish
2012-10-06 14:18:49 +02:00
Alexandre Ratchov
2b5ee784cb
backout last
2012-10-05 17:59:32 +02:00
Alexandre Ratchov
283aab28b0
fix msb usage in aparams_native()
2012-10-05 17:58:11 +02:00
Alexandre Ratchov
84d21ff8c2
properly count file descriptors
2012-09-05 00:50:42 +02:00
Alexandre Ratchov
ff73404bb6
re-enable timer
2012-09-04 10:03:22 +02:00
Alexandre Ratchov
6ce349176e
add new sndiod
2012-09-03 00:13:30 +02:00