summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/sio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make code fit in 80 columns, remove trailing spaces & tabs.ratchov2016-01-091-4/+4
|
* Don't remove the type component from the device string before passingratchov2015-11-221-11/+7
| | | | | it to the *_open() functions. It's more flexible this way. No behaviour change.
* Move to the <limits.h> universe.deraadt2015-01-161-2/+1
| | | | review by millert, binary checking process with doug, concept with guenther
* debug level test for clock_gettime() calls should matchjsg2014-08-101-2/+2
| | | | ok ratchov@
* - use relative read/write positions to keep track of bufferratchov2014-03-051-31/+50
| | | | | | | | | | | | | | 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
* Be less verbose when SNDIO_DEBUG=1 is set.ratchov2013-12-201-3/+3
|
* Prefix by '_' symbols that are not part of the API.ratchov2013-11-131-18/+18
| | | | ok deraadt, guenther
* Move underrun/overrun recovery code from the sun-api back-end toratchov2013-08-241-51/+109
| | | | | the the generic code, so it can be used by other back-ends as well. No behavior change (hopefully).
* Handle big time_t.guenther2013-04-031-21/+21
| | | | | | | Use clock_gettime(CLOCK_MONOTONIC) instead of gettimeofday() when measuring time intervals for debugging output. ok ratchov@
* If par->bufsz is set (it's documented as readonly since years) thenratchov2013-02-011-1/+2
| | | | reset it and set par->appbufsz instead
* check that polled fd number is smaller than SIO_MAXNFDSratchov2012-10-271-3/+8
|
* Make the "default" string a valid device name that has the same effectratchov2012-05-231-3/+9
| | | | | as NULL has. This will (hopefully) simplify ports where the user passes the device string.
* The default device is selected with sndiod(1) or the AUDIODEVICEratchov2012-05-111-2/+2
| | | | | environment variable, so stop using the /dev/audio symlink which can't be used by sndiod(1) anyway
* Use "unsigned int" rather than "unsigned". No object change.ratchov2012-04-111-10/+11
| | | | suggested by deraadt@
* Add a "device number" component in sndio(7) device names, allowing aratchov2011-11-151-30/+12
| | | | | | | | | | | | | | | | single aucat instance to handle all audio and MIDI services. Since this partially breaks compatibility, this is a opportunitiy to fix few other design mistakes (eg ':' being used by inet6, type name vs api name confusion, etc..). This leads to the following names: type[@hostname][,unit]/devnum[.option] The device number is the minor device number for direct hardware access (ie the 'N' in /dev/audioN). For aucat, this is the occurence number of the -f (or -M) option. There's a compatibility hook to keep old names working if only one aucat server is running.
* in sio_psleep(), use an array of SIO_MAXNFDS pollfd strucures ratherratchov2011-05-091-5/+7
| | | | than a single one. No behaviour change
* use an array of backends and iterate on it, instead of inliningratchov2011-05-061-15/+22
| | | | calls to sio_<backend>_open(). No behaviour change
* remove almost two years old hack to support legacy audio/midiratchov2011-05-061-12/+4
| | | | device names
* determine the default device in backend code instead of the commonratchov2011-05-031-8/+3
| | | | | code. This is simpler as long as not all backends use the same default.
* Make aucat audio and midi backends share the same code to communicateratchov2011-04-161-20/+9
| | | | | | with the server. As we're at it use the same protocol for midi and audio. Now, both audio and midi code use the same SNDIO_DEBUG environment variable to turn on/off DPRINTF's.
* Clean up function naming: use sio_<backend>_ prefix for privateratchov2011-04-081-0/+484
audio-related functions and put them in files named sio_<backend>.c No behaviour changes.