Commit Graph

805 Commits

Author SHA1 Message Date
Alexandre Ratchov 0ab68bae61 comment that -1 means infinite timeout 2015-08-27 09:40:50 +02:00
Alexandre Ratchov 9c5df51422 man page: we use devices, not midi ports 2015-08-26 13:01:50 +02:00
Alexandre Ratchov eb8224b11c update labels dynamically 2015-08-26 12:49:39 +02:00
Alexandre Ratchov 293133ebdf copy label name in dev_add() 2015-08-26 12:22:06 +02:00
Alexandre Ratchov 9ff8e621d0 typos in comments and strings 2015-08-26 10:27:22 +02:00
Alexandre Ratchov 366e464abc add Description in init.d startup script. From Peter
Piwowarski <peterjpiwowarski at gmail.com>
2015-08-25 15:24:53 +02:00
Alexandre Ratchov 51f6116e12 Hide symbols provided by bsd-compat functions by prefixing them
by _sndio_.
2015-08-25 15:02:02 +02:00
Alexandre Ratchov c96282f412 Use DEAMON_OPTS, defined in /etc/default/sndiod, in the init.d
script. Without this, /etc/default/sndiod was ignored. From
Peter Piwowarski <peterjpiwowarski at gmail.com>, thanks!
2015-08-25 10:56:46 +02:00
Alexandre Ratchov fd7c03518f use lseek to fill with silence 2015-08-23 17:03:02 +02:00
Alexandre Ratchov dbebd9982f Fix typos, from Peter Piwowarski <peterjpiwowarski at gmail.com> 2015-08-13 17:37:45 +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 29516de2c3 Use "Ev" macro for AUCAT_COOKIE environment variable. From Michael
Reed <m.reed at mykolab.com>. Thanks.
2015-08-01 12:31:36 +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 5edf525314 switch to now AUDIO_GETPOS interface 2015-07-31 17:35:54 +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 f4aff492a8 use single .so.min.maj link for .so 2015-07-15 10:37:46 +02:00
Alexandre Ratchov 07ee111086 readd soname with major, needed on linux 2015-07-09 17:13:01 +02:00
Alexandre Ratchov 72e727b865 drop soname 2015-07-08 17:59:05 +02:00
Alexandre Ratchov 3fb646dbbe remove unused includes 2015-06-04 07:11:40 +02:00
Alexandre Ratchov 8468b9f0a0 rename grp->func 2015-06-04 06:12:38 +02:00
Alexandre Ratchov fc071998df call slot_stop() after draining 2015-05-16 21:23:07 +02:00
Alexandre Ratchov 33ad1a504d fix missing brace mistake, from jsg@ 2015-05-05 14:45:55 +02:00
Alexandre Ratchov 04d8fe25dd Fix clipping bug in float to fixed point conversion, causing
audible glitches when samples smaller than the quantification
step are converted.
2015-05-04 14:53:28 +02:00
Alexandre Ratchov 8620da44d1 make default bufsz 7680 (was 7860) 2015-04-24 19:44:06 +02:00
Alexandre Ratchov 3069d5e560 remove unused vars 2015-03-16 17:31:45 +01:00
Alexandre Ratchov 5d0c71336c remove unused var 2015-03-16 17:30:27 +01:00
Alexandre Ratchov 6b0127334d use new master control name 2015-03-16 12:15:26 +01:00
Alexandre Ratchov b3a8f99047 make the label use chan1 as parameter 2015-03-12 08:20:23 +01:00
Alexandre Ratchov 13a3a75dc7 make the label use chan1 as parameter 2015-03-12 08:20:14 +01:00
Alexandre Ratchov a7f3f280be fix the way we move to next list entry 2015-03-06 17:39:20 +01:00
Alexandre Ratchov 40ef765533 fix chan0<->chan1 confusion 2015-03-06 16:13:03 +01:00
Alexandre Ratchov a58ea0effe use better names for sndiod mixer controls 2015-03-06 10:42:04 +01:00
Alexandre Ratchov 0c4e64484d append _in _out to mic/spkr/hp/... only 2015-03-06 10:39:51 +01:00
Alexandre Ratchov 99ca91c6b3 suffix stream names with -in, -out, -rec 2015-03-06 08:53:40 +01:00
Alexandre Ratchov 905c319315 use strings rather than channel numbers 2015-03-05 10:12:34 +01:00
Alexandre Ratchov dfa1d3dd8c add midicat 2015-02-25 08:38:04 +01:00
Alexandre Ratchov 4717cf976d include limits.h and unbreak build 2015-02-25 08:37:50 +01:00
Alexandre Ratchov 52e645e422 handle EINTR when reading /dev/urandom 2015-02-16 18:56:30 +01:00
Alexandre Ratchov 98027ba688 use SOCK_CLOEXEC 2015-02-16 11:52:36 +01:00
Alexandre Ratchov 8dd18742f2 unbreak usage and macros in manpage, from jmc 2015-01-21 12:31:48 +01:00
Alexandre Ratchov d27e0e138f don't force poll to sleep at block boundaries 2015-01-19 18:22:42 +01:00
Alexandre Ratchov b989e17c05 don't use openbsd-specific SOCK_CLOEXEC 2015-01-18 00:16:36 +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 85855e673a factor header read/write & param checking code 2015-01-08 14:25:46 +01:00
Alexandre Ratchov 76705e06c2 better error messages 2015-01-08 13:10:31 +01:00