summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/sio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.