summaryrefslogtreecommitdiff
path: root/lib/libsndio
AgeCommit message (Collapse)Author
2015-10-05Fix missing checks for truncation of long file names. Rather thanAlexandre Ratchov
checking for truncation every time we touch the string, simply allocate a memory chunk large enough to store the full path.
2015-10-02use macros for cookie path and temp file template insteadAlexandre Ratchov
of hardcoded strings. no object change.
2015-10-02Validate that midi and audio device numbers are integers.Alexandre Ratchov
2015-10-02As device path is known, use its size instead of PATH_MAXAlexandre Ratchov
2015-10-02Use macros for audio and midi device paths rather than hardcodedAlexandre Ratchov
strings. No object change.
2015-10-02As the socket path is known, use its size rather that PATH_MAX.Alexandre Ratchov
2015-10-02fix typo in debug messageAlexandre Ratchov
2015-10-02use macros instead of hard-coded strings for unix sockets pathsAlexandre Ratchov
2015-10-02fix spacingAlexandre Ratchov
2015-10-02remove unused DEFAULT_OPT macroAlexandre Ratchov
2015-10-01Remove support for the AUCAT_COOKIE environment variable.Alexandre Ratchov
2015-09-14Remove useless quoting from .Fo and .Fn function names, to preventIngo Schwarze
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.
2015-08-01Use "Ev" macro for AUCAT_COOKIE environment variable. From MichaelAlexandre Ratchov
Reed <m.reed at mykolab.com>. Thanks.
2015-07-28Use new AUDIO_GETPOS ioctl instead of AUDIO_GETxOFFS andAlexandre Ratchov
AUDIO_xERROR. It returns a snapshot of the counters we need and avoids inconsistencies.
2015-07-24Fix arithmetic mistake causing errors when there are more xruns on theAlexandre Ratchov
record side than on the play side. This almost never happens are record buffer are much larger than play buffers.
2015-05-05add missing braces in _aucat_wmsg()Jonathan Gray
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@
2015-02-16Drop yet another hook for ':' char in midi device names.Alexandre Ratchov
2015-02-16Remove backward compat bits to support for ':' character in sndioAlexandre Ratchov
device names. Remove wrong comments.
2015-01-16Move to the <limits.h> universe.Theo de Raadt
review by millert, binary checking process with doug, concept with guenther
2014-12-02Kill the only instance of .Lb in our tree. It is better to not useIngo Schwarze
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@
2014-11-21Initialize the xrun attribute to SIO_IGNORE in sio_sun_getpar(). FoundAlexandre Ratchov
by stu@, thanks!
2014-09-07Use SOCK_CLOEXEC (instead of later using fcntl(F_SETFD)) when creating socketsPhilip Guenther
for talking to aucat/sndiod ok ratchov@
2014-08-15Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)Philip Guenther
on it, simplifying error checking, reducing system calls, and improving thread-safety for libraries. ok miod@
2014-08-10debug level test for clock_gettime() calls should matchJonathan Gray
ok ratchov@
2014-03-07slightly "nicer" debug printfsAlexandre Ratchov
2014-03-05- use relative read/write positions to keep track of bufferAlexandre Ratchov
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
2014-03-05say this is the "sndio" api, as we have other audio/midi apis,Alexandre Ratchov
makes "man -k" happier. ok jmc, schwarze
2014-01-22clean up macro usage;Ingo Schwarze
tweak and ok ratchov@, ok jmc@
2013-12-23- clarify that sio_close() stops the device first, thenAlexandre Ratchov
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@
2013-12-22- replaces "audio stream" by "audio device", as sndio is a deviceAlexandre Ratchov
abstraction - remove useless statements. ok jmc@
2013-12-20Be less verbose when SNDIO_DEBUG=1 is set.Alexandre Ratchov
2013-11-21use -Wmissing-prototypesAlexandre Ratchov
2013-11-19move -Wxxx flags from CFALGS to COPTSAlexandre Ratchov
suggested by deraadt
2013-11-18add missing prototypesAlexandre Ratchov
2013-11-13Prefix by '_' symbols that are not part of the API.Alexandre Ratchov
ok deraadt, guenther
2013-11-12internalize some functions so that they do not need prototypesTheo de Raadt
ok ratchov
2013-08-24Move underrun/overrun recovery code from the sun-api back-end toAlexandre Ratchov
the the generic code, so it can be used by other back-ends as well. No behavior change (hopefully).
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
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@
2013-07-04remove FILES sections because it's incomplete, wrong and doesn't giveAlexandre Ratchov
any useful information
2013-07-04shorten lines in literal blocks to avoid word wrapingAlexandre Ratchov
2013-06-05use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarzeTed Unangst
2013-04-06explain what "default" means in sndio.7 rather than {sio,mio}_open.3,Alexandre Ratchov
with tweaks from jmc
2013-04-03Handle big time_t.Philip Guenther
Use clock_gettime(CLOCK_MONOTONIC) instead of gettimeofday() when measuring time intervals for debugging output. ok ratchov@
2013-03-13in debug mode, log successful connections, from Jan StaryAlexandre Ratchov
2013-02-01If par->bufsz is set (it's documented as readonly since years) thenAlexandre Ratchov
reset it and set par->appbufsz instead
2012-12-22some fixes, based on a diff from Martin Toft;Jason McIntyre
2012-11-23Remplace aucat server by a new sndiod daemon aimed to be simplerAlexandre Ratchov
smaller and faster than aucat. It's a drop in replacement with the following exceptions that don't affect the default setup: - The sample rate and the encoding are a per-device parameters thus -r and -e options must precede the corresponding -f option - MIDI thru boxes are dynamically created and no -M option is required anymore, so -M was removed. - MIDI ports are exposed with a new ``midi/N'' name, rather than abusing MIDI thru boxes. with help from armani@, ok deraadt@
2012-11-23Make the client wait for the first flow control message rather thanAlexandre Ratchov
assuming it can send a full initial data buffer. This requires protocol version bump (but no library version bump).
2012-11-02Use dedicated messages for flow control instead of abusing clock tickAlexandre Ratchov
messages and enable flow control for MIDI. Since this requires protocol version bump, both sndiod and libsndio must be kept up to date to work together.
2012-10-27make midi code use non-blocking i/o as does audio code, in orderAlexandre Ratchov
to make both look similar