summaryrefslogtreecommitdiffstats
path: root/lib/libsndio (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Expose internal functions necessary to open audio devices and midiratchov2015-12-203-7/+19
| | | | ports using existing file descriptors.
* MIO_IN needs O_RDONLY, not O_WRONLYratchov2015-11-301-2/+2
|
* -M option was removed, midi ports registered with -qratchov2015-11-251-3/+3
|
* Fix confusion between SIO_xxx and MIO_xxx options (copy & paste error).ratchov2015-11-241-3/+3
|
* remove unneeded prototypesratchov2015-11-221-3/+1
|
* Don't remove the type component from the device string before passingratchov2015-11-229-70/+102
| | | | | it to the *_open() functions. It's more flexible this way. No behaviour change.
* Split function to initialize the raw device in two parts, one to openratchov2015-11-181-23/+44
| | | | | | the device node, the other to do the initialization. This will allow with minimal changes, work to be done in two process sharing the fd. No behaviour change.
* don't call AUDIO_SETFD ioctl as it's a no-opratchov2015-11-171-13/+2
|
* Fix missing checks for truncation of long file names. Rather thanratchov2015-10-051-14/+28
| | | | | checking for truncation every time we touch the string, simply allocate a memory chunk large enough to store the full path.
* use macros for cookie path and temp file template insteadratchov2015-10-021-3/+5
| | | | of hardcoded strings. no object change.
* Validate that midi and audio device numbers are integers.ratchov2015-10-024-7/+43
|
* As device path is known, use its size instead of PATH_MAXratchov2015-10-022-4/+12
|
* Use macros for audio and midi device paths rather than hardcodedratchov2015-10-022-4/+6
| | | | strings. No object change.
* As the socket path is known, use its size rather that PATH_MAX.ratchov2015-10-022-4/+11
|
* fix typo in debug messageratchov2015-10-021-2/+2
|
* use macros instead of hard-coded strings for unix sockets pathsratchov2015-10-022-6/+16
|
* fix spacingratchov2015-10-021-2/+2
|
* remove unused DEFAULT_OPT macroratchov2015-10-021-2/+1
|
* Remove support for the AUCAT_COOKIE environment variable.ratchov2015-10-012-17/+9
|
* Remove useless quoting from .Fo and .Fn function names, to preventschwarze2015-09-142-29/+29
| | | | | | development of a cargo cult in case people look at existing files for examples. This achieves a consistent .Fo and .Fn quoting style across the whole tree.
* Use "Ev" macro for AUCAT_COOKIE environment variable. From Michaelratchov2015-08-011-3/+3
| | | | Reed <m.reed at mykolab.com>. Thanks.
* Use new AUDIO_GETPOS ioctl instead of AUDIO_GETxOFFS andratchov2015-07-281-43/+24
| | | | | AUDIO_xERROR. It returns a snapshot of the counters we need and avoids inconsistencies.
* Fix arithmetic mistake causing errors when there are more xruns on theratchov2015-07-241-2/+2
| | | | | record side than on the play side. This almost never happens are record buffer are much larger than play buffers.
* add missing braces in _aucat_wmsg()jsg2015-05-051-2/+3
| | | | | | | | As ratchov@ notes: "all _aucat_wmsg() callers set hdl->wtodo, so your diff can't break things that used to work by accident." ok ratchov@
* Drop yet another hook for ':' char in midi device names.ratchov2015-02-161-2/+1
|
* Remove backward compat bits to support for ':' character in sndioratchov2015-02-161-13/+1
| | | | device names. Remove wrong comments.
* Move to the <limits.h> universe.deraadt2015-01-164-8/+4
| | | | review by millert, binary checking process with doug, concept with guenther
* Kill the only instance of .Lb in our tree. It is better to not useschwarze2014-12-021-4/+3
| | | | | | | it at all, not even occasionally, because there is no sustainable way (and even less any portable way) to maintain the list of library names. Besides, without such a list, even the formatting looks bad. OK jmc@ bentley@
* Initialize the xrun attribute to SIO_IGNORE in sio_sun_getpar(). Foundratchov2014-11-211-1/+2
| | | | by stu@, thanks!
* Use SOCK_CLOEXEC (instead of later using fcntl(F_SETFD)) when creating socketsguenther2014-09-071-7/+4
| | | | | | for talking to aucat/sndiod ok ratchov@
* Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)guenther2014-08-152-15/+4
| | | | | | | on it, simplifying error checking, reducing system calls, and improving thread-safety for libraries. ok miod@
* debug level test for clock_gettime() calls should matchjsg2014-08-101-2/+2
| | | | ok ratchov@
* slightly "nicer" debug printfsratchov2014-03-071-3/+6
|
* - use relative read/write positions to keep track of bufferratchov2014-03-054-58/+74
| | | | | | | | | | | | | | usage as seen by the caller - refresh current position before reading/writing data, to keep the current position always consistent with read & write pointers - 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 in play-only and rec-only modes - don't wait for POLLIN or POLLOUT to be set to refresh ring pointers, as they may not be set in certain cases. Fixes sndiod crash after few days of continuous playback. - save current parameters instead of calling getpar() too often
* say this is the "sndio" api, as we have other audio/midi apis,ratchov2014-03-052-6/+6
| | | | | | makes "man -k" happier. ok jmc, schwarze
* clean up macro usage;schwarze2014-01-221-74/+79
| | | | tweak and ok ratchov@, ok jmc@
* - clarify that sio_close() stops the device first, thenratchov2013-12-231-26/+21
| | | | | | | | | | frees the handle and not the opposite - clarify that sio_close() and sio_stop() dont discard samples in the play buffer. suggested by Reimar Doeffinger <Reimar.Doeffinger at gmx.de> ok jmc@
* - replaces "audio stream" by "audio device", as sndio is a deviceratchov2013-12-221-73/+55
| | | | | | | abstraction - remove useless statements. ok jmc@
* Be less verbose when SNDIO_DEBUG=1 is set.ratchov2013-12-204-21/+21
|
* use -Wmissing-prototypesratchov2013-11-211-2/+2
|
* move -Wxxx flags from CFALGS to COPTSratchov2013-11-191-3/+3
| | | | suggested by deraadt
* add missing prototypesratchov2013-11-181-1/+2
|
* Prefix by '_' symbols that are not part of the API.ratchov2013-11-1313-143/+142
| | | | ok deraadt, guenther
* internalize some functions so that they do not need prototypesderaadt2013-11-121-4/+4
| | | | ok ratchov
* Move underrun/overrun recovery code from the sun-api back-end toratchov2013-08-243-144/+138
| | | | | the the generic code, so it can be used by other back-ends as well. No behavior change (hopefully).
* Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther2013-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
* remove FILES sections because it's incomplete, wrong and doesn't giveratchov2013-07-042-27/+3
| | | | any useful information
* shorten lines in literal blocks to avoid word wrapingratchov2013-07-041-18/+18
|
* use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarzetedu2013-06-052-6/+6
|
* explain what "default" means in sndio.7 rather than {sio,mio}_open.3,ratchov2013-04-063-22/+41
| | | | with tweaks from jmc