summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/mio_aucat.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use dedicated messages for flow control instead of abusing clock tickratchov2012-11-021-5/+47
| | | | | | 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.
* make midi code use non-blocking i/o as does audio code, in orderratchov2012-10-271-3/+12
| | | | to make both look similar
* Use "unsigned int" rather than "unsigned". No object change.ratchov2012-04-111-2/+3
| | | | suggested by deraadt@
* Add a "device number" component in sndio(7) device names, allowing aratchov2011-11-151-3/+3
| | | | | | | | | | | | | | | | 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-16/+4
| | | | | | | | | 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
* slightly cleanup by separating socket-specific code fromratchov2011-04-181-5/+5
| | | | protocol specific code. No behaviour change
* for unix domain socket addresses use AUCAT_PATH and MIDICAT_PATHratchov2011-04-161-3/+3
| | | | macros instead of hardcoded strings. No object change
* Make aucat audio and midi backends share the same code to communicateratchov2011-04-161-137/+36
| | | | | | 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.
* Use mio_<backend>_ prefix for private midi-related functions and putratchov2011-04-121-0/+243
them in files named mio_<backend>.c No behaviour change.