Commit Graph

780 Commits

Author SHA1 Message Date
Alexandre Ratchov 3100560d01 listen -> listen on; from Jan Stary 2015-11-25 20:51:50 +01:00
Alexandre Ratchov 276b44ece4 save & restore umask when creating socket dir 2015-11-25 20:50:17 +01:00
Alexandre Ratchov c8a50a21ea add port numbers 2015-11-25 20:49:09 +01:00
Alexandre Ratchov d4cea96993 use stored d->num, in search for devices 2015-11-25 20:48:47 +01:00
Alexandre Ratchov a17c9dfc55 missing prototype 2015-11-25 20:47:52 +01:00
Alexandre Ratchov 66ca92689e stop mmc in dev_done, releasing ref to the device 2015-11-25 20:46:03 +01:00
Alexandre Ratchov 8bb88f248f if no -f or -q are used, attach rsnd/[0-3] and rmidi/[0-7] 2015-10-20 15:25:54 +02:00
Alexandre Ratchov 56540a0d18 unexpand $OpenBSD$ 2015-10-20 09:16:31 +02:00
Alexandre Ratchov bbfde03621 please gcc 2015-10-20 09:15:09 +02:00
Alexandre Ratchov 4d72d01c2c remove unnecessary macros from michael reed 2015-10-20 09:11:34 +02:00
Alexandre Ratchov 8575b870d1 spacing 2015-10-02 15:05:43 +02:00
Alexandre Ratchov 5d431d3616 Replace hard-coded strings with macros, replace PATH_MAX with actual
string length, validate audio and midi device numbers
2015-10-02 14:28:17 +02:00
Alexandre Ratchov 0a39548f4d use SOCKPATH_xxx macros 2015-10-02 14:26:46 +02:00
Alexandre Ratchov d91596856b typo 2015-10-01 08:51:48 +02:00
Alexandre Ratchov 6ddedf6c9f remove unused AUCAT_COOKIE environment variable 2015-10-01 08:50:13 +02:00
Alexandre Ratchov 7062d226ac remove useless quoting and fix typos, from schwarze@ 2015-10-01 08:49:47 +02:00
Alexandre Ratchov ed060a659e Add --with-libbsd to use libbsd for strlcpy, strlcat and strtonum. From
Peter Piwowarski <peterjpiwowarski at gmail.com>. Thanks.
2015-09-09 19:32:30 +02:00
Alexandre Ratchov f2b6fd9f4b s/xfree/free in comments 2015-09-05 13:18:04 +02:00
Alexandre Ratchov ebed8a554c leave -'s in literals 2015-09-02 08:28:10 +02:00
Alexandre Ratchov ad93cbcd12 fix example (>/dev/null required to drop output) 2015-08-30 20:14:58 +02:00
Alexandre Ratchov e0489782f6 scape "-" with backslash, from Peter Piwowarski <peterjpiwowarski at
gmail.com>
2015-08-30 19:36:58 +02:00
Alexandre Ratchov 7bd2439992 unbreak configure script: missing xvolkeys and sndioctl 2015-08-30 11:39:09 +02:00
Alexandre Ratchov a162cfd9e6 remove mixer api files 2015-08-28 09:03:49 +02:00
Alexandre Ratchov 1e958d6853 move the mixer api to a dedicated "mixer" branch 2015-08-28 08:59:59 +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 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