summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/sio_aucat.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make code fit in 80 columns, remove trailing spaces & tabs.ratchov2016-01-091-2/+3
|
* Don't remove the type component from the device string before passingratchov2015-11-221-2/+2
| | | | | it to the *_open() functions. It's more flexible this way. No behaviour change.
* slightly "nicer" debug printfsratchov2014-03-071-3/+6
|
* - use relative read/write positions to keep track of bufferratchov2014-03-051-10/+4
| | | | | | | | | | | | | | 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-5/+5
|
* Prefix by '_' symbols that are not part of the API.ratchov2013-11-131-21/+21
| | | | ok deraadt, guenther
* Make the client wait for the first flow control message rather thanratchov2012-11-231-2/+2
| | | | | assuming it can send a full initial data buffer. This requires protocol version bump (but no library version bump).
* Use dedicated messages for flow control instead of abusing clock tickratchov2012-11-021-23/+16
| | | | | | 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.
* include netinet/in.h to get htons & friends prototypesratchov2012-10-271-1/+2
|
* Be nice with the server and align data packets to audio block boundaryratchov2012-09-021-1/+12
|
* Use "unsigned int" rather than "unsigned". No object change.ratchov2012-04-111-11/+11
| | | | suggested by deraadt@
* Add a "device number" component in sndio(7) device names, allowing aratchov2011-11-151-4/+4
| | | | | | | | | | | | | | | | 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.
* Remove midicat since aucat can now be used instead of midicatratchov2011-10-171-2/+2
| | | | | | | | | with almost the same syntax (roughly an extra -M option). Thru boxes are created with aucat, and corresponding MIDI port names have the "aucat" prefix instead of "midithru". The old device name will still work some time for backward compatibility. ok deraadt
* don't forget to send the initial clock tickratchov2011-06-031-1/+5
|
* Add missing byter order conversions in message headers. Fixes the caseratchov2011-05-021-29/+35
| | | | | when the server and the client are not of the same endianness. Found by naddy.
* slightly cleanup by separating socket-specific code fromratchov2011-04-181-2/+2
| | | | protocol specific code. No behaviour change
* for unix domain socket addresses use AUCAT_PATH and MIDICAT_PATHratchov2011-04-161-2/+2
| | | | macros instead of hardcoded strings. No object change
* Since aucat supports any parameter combination sio_getcap() doesn'tratchov2011-04-161-15/+1
| | | | | need to query the server for supported parameters. So stop using the AMSG_GETCAP message, and remove it completely from the aucat protocol.
* Make aucat audio and midi backends share the same code to communicateratchov2011-04-161-382/+121
| | | | | | 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/+754
audio-related functions and put them in files named sio_<backend>.c No behaviour changes.