Alexandre Ratchov
0a39548f4d
use SOCKPATH_xxx macros
2015-10-02 14:26:46 +02:00
Alexandre Ratchov
f2b6fd9f4b
s/xfree/free in comments
2015-09-05 13:18:04 +02:00
Alexandre Ratchov
a162cfd9e6
remove mixer api files
2015-08-28 09:03:49 +02:00
Alexandre Ratchov
e8007feb00
move the mixer api to a dedicated "mixer" branch
2015-08-28 08:57:47 +02:00
Alexandre Ratchov
0ab68bae61
comment that -1 means infinite timeout
2015-08-27 09:40:50 +02:00
Alexandre Ratchov
293133ebdf
copy label name in dev_add()
2015-08-26 12:22:06 +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
92995a97e0
delete timeout on close, log disconnects
2015-07-31 17:46:15 +02:00
Alexandre Ratchov
4063b8217c
crank watchdog timeout to 4 seconds
2015-07-31 17:44:04 +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
8468b9f0a0
rename grp->func
2015-06-04 06:12:38 +02:00
Alexandre Ratchov
8620da44d1
make default bufsz 7680 (was 7860)
2015-04-24 19:44:06 +02:00
Alexandre Ratchov
b3a8f99047
make the label use chan1 as parameter
2015-03-12 08:20:23 +01:00
Alexandre Ratchov
a58ea0effe
use better names for sndiod mixer controls
2015-03-06 10:42:04 +01:00
Alexandre Ratchov
905c319315
use strings rather than channel numbers
2015-03-05 10:12:34 +01:00
Alexandre Ratchov
debf3b302c
stop using param.h, from deraadt@
2015-01-18 00:09:04 +01:00
Alexandre Ratchov
26400ac4de
set default xrun mode
2015-01-17 21:08:11 +01:00
Alexandre Ratchov
e36de0d10b
fix bsd-compat related warnings on linux
2014-12-29 12:55:43 +01:00
Alexandre Ratchov
fab9d738ac
all counters are signed ints
2014-11-17 08:08:10 +01:00
Alexandre Ratchov
a7f38ff59e
fix 1U vs 1
2014-10-12 23:18:33 +02:00
Alexandre Ratchov
c5606fd3f3
dont rely on >> working on signed ints
2014-10-12 23:17:27 +02:00
Alexandre Ratchov
d372b3a580
check audio parameters returned by the audio drivers,
...
and nicely report driver bugs rather than crashing/misbehaving
later if parameters aren't consistent.
2014-10-08 18:47:48 +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
88648d8f9b
unitialize sock->port pointer
2014-06-02 09:43:06 +02:00
Alexandre Ratchov
408318f6ec
log client start only if log_level >= 2
2014-05-15 14:19:15 +02:00
Alexandre Ratchov
0441c58c62
unused function
2014-03-24 06:53:46 +01:00
Alexandre Ratchov
4819480746
fix wrong dev_cycle() comment
2014-03-17 18:48:25 +01:00
Alexandre Ratchov
c95cb04987
dont check dev_cycle() ret val as we check dev state
2014-03-17 18:42:20 +01:00
Alexandre Ratchov
4b820e4de0
after every cycle, check if this was the last cycle in which case the
...
device may be closed and shouldn't be used
2014-03-17 18:38:57 +01:00
Alexandre Ratchov
0594488a66
typo
2014-03-17 18:13:59 +01:00
Alexandre Ratchov
0c70f95bd5
unbreak monitoring mode (was 1 block off)
2014-03-17 18:13:11 +01:00
Alexandre Ratchov
559d953ef6
backout latest
2014-03-17 17:44:47 +01:00
Alexandre Ratchov
d00caaaf96
disable playing and monitoring at the same time and append
...
slots using MODE_MON at the end of the slot list, so that
data to monitor is produced (by other slots) before the
monitoring slot is consuming it
2014-03-17 09:57:41 +01:00
Alexandre Ratchov
5543797422
log the correct file state string
2014-03-07 17:35:05 +01:00
Alexandre Ratchov
af546d3a0f
remove unused "delta" argument from onmove callbacks
2014-03-07 11:21:15 +01:00
Alexandre Ratchov
1049e3fa71
remove unused mmc start/stop/relocate call-backs as they don't
...
make sense for sockets
2014-03-07 11:16:26 +01:00
Alexandre Ratchov
55309494c6
unused include
2014-03-06 19:21:30 +01:00
Alexandre Ratchov
aa1877d6ef
remove unused "autostart" feature
2014-03-05 21:22:05 +01:00
Alexandre Ratchov
d536b0972d
please gcc
2014-03-05 21:14:57 +01:00
Alexandre Ratchov
2c1feaa186
add missing proto
2014-03-05 21:12:35 +01:00
Alexandre Ratchov
946186b6e5
remove slot_onmove
2014-03-05 21:11:57 +01:00
Alexandre Ratchov
e140c92610
remove comment
2014-03-05 21:09:31 +01:00
Alexandre Ratchov
f59de2770d
check if writable preparing a DATA packet
2014-03-05 20:09:34 +01:00
Alexandre Ratchov
25e29a8cf2
remove unused attr
2014-03-05 19:52:21 +01:00
Alexandre Ratchov
8914029a2f
remove autostart attribute
2014-03-05 09:16:57 +01:00