Alexandre Ratchov
b5a1760af3
unexpand tabs
2016-01-09 09:23:56 +01:00
Alexandre Ratchov
cbaa92d4d8
better debug mesg
2016-01-09 09:20:46 +01:00
Alexandre Ratchov
99cfc04004
fit code in 80 columns, remove traing spaces
2016-01-08 21:51:12 +01:00
Alexandre Ratchov
aa4fc43964
move sndiod manual to sec 8
2016-01-07 17:48:47 +01:00
Alexandre Ratchov
37cdacd0aa
crank major (openbsd specific changes)
2015-12-30 12:54:40 +01:00
Alexandre Ratchov
7530bbf6d2
Pass full device name to audio/midi backends.
2015-12-09 11:13:11 +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
bbfde03621
please gcc
2015-10-20 09:15:09 +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
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
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
9ff8e621d0
typos in comments and strings
2015-08-26 10:27:22 +02:00
Alexandre Ratchov
dbebd9982f
Fix typos, from Peter Piwowarski <peterjpiwowarski at gmail.com>
2015-08-13 17:37:45 +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
5edf525314
switch to now AUDIO_GETPOS interface
2015-07-31 17:35:54 +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
8468b9f0a0
rename grp->func
2015-06-04 06:12:38 +02:00
Alexandre Ratchov
33ad1a504d
fix missing brace mistake, from jsg@
2015-05-05 14:45:55 +02:00
Alexandre Ratchov
b3a8f99047
make the label use chan1 as parameter
2015-03-12 08:20:23 +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
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
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
e36de0d10b
fix bsd-compat related warnings on linux
2014-12-29 12:55:43 +01:00
Alexandre Ratchov
7834cb2a56
drop support for ":" in device names
2014-11-18 10:31:18 +01:00
Alexandre Ratchov
6c83586b81
remove todo list (already done)
2014-11-18 10:26:45 +01: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
da8108f09a
add initial support for audio mixers, disabled by default
...
ok armani@
2014-07-16 12:05:01 +02:00
Alexandre Ratchov
dfa5df2eb5
add -I. to build with sndio.h in current dir
2014-05-13 09:38:00 +02:00
Alexandre Ratchov
0e0511c762
for alsa, POLL{IN,OUT} events mean that a block can be read or
...
written (not a byte as unix files expect). Use "tickets" counters that
are reset to hdl->par.round on each POLL{IN,OUT} event. Limit read()
and write() to one block to ensure poll is always called at block
boundaries.
2014-05-05 19:25:15 +02:00
Alexandre Ratchov
4709dcb282
simplify switch/case
2014-03-10 11:20:45 +01:00
Alexandre Ratchov
e9feeda8a2
nicer debug traces
2014-03-06 16:59:57 +01:00
Alexandre Ratchov
15739f2718
add "sndio" keyword to please "man -k"
2014-03-05 21:17:42 +01:00
Alexandre Ratchov
cbecd3ea8d
Fix confusion between processed samples by the hardware (as reported
...
by GET{I,O}OFFS) and samples played as reported by GETINFO(). Fixes
incorrect delta propagated after xruns.
2014-03-04 23:24:52 +01:00
Alexandre Ratchov
d06df743db
Refresh current position before reading/writing data, to keep the
...
current position always consistent with read & write pointers.
2014-02-21 10:58:43 +01:00
Alexandre Ratchov
c9d4272377
Don't wait for POLLIN or POLLOUT to be set to refresh ring pointers,
...
as they may not be set in certain cases
2014-02-21 10:55:30 +01:00
Alexandre Ratchov
d02745522d
backout latest
2014-02-15 21:56:05 +01:00
Alexandre Ratchov
3fe3b27ace
return actual rchan, rather requested one
2014-02-14 20:59:38 +01:00
Alexandre Ratchov
6cbde939dd
ensure that rpos <= cpos <= wpos
2014-02-14 15:15:13 +01:00
Alexandre Ratchov
e8fc261612
use save parameters instead of calling getpar()
2014-02-13 16:41:51 +01:00