summaryrefslogtreecommitdiff
path: root/lib/libsndio
AgeCommit message (Collapse)Author
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
2012-10-27crank SIO_MAXNFDSAlexandre Ratchov
2012-10-27check that polled fd number is smaller than SIO_MAXNFDSAlexandre Ratchov
2012-10-27include netinet/in.h to get htons & friends prototypesAlexandre Ratchov
2012-09-15Improve instructions for handling non-blocking I/O with poll(2) andStefan Sperling
the mio_* functions. As per suggestion from jmc tidy up spacing in RETURN VALUES section and Xr poll(2). ok jmc ratchov
2012-09-14Don't read the xrun counter before the offset in the audio ring,Alexandre Ratchov
otherwise we'd open a tiny time window during which a xrun may occur in turn making the sio_onmove() clock wrong during one tick.
2012-09-14Have mio_open(3) document all return values in the RETURN VALUES section.Stefan Sperling
And don't document the return value of mio_pollfd() twice, one instance of which was incorrect. ok jmc, ratchov
2012-09-12Define empty CDIAGFLAGS for programs that use Werror.Christiano F. Haesbaert
Makes "make build" build with WARNINGS=Yes on amd64. ok espie
2012-09-02Be nice with the server and align data packets to audio block boundaryAlexandre Ratchov
2012-05-23Make the "default" string a valid device name that has the same effectAlexandre Ratchov
as NULL has. This will (hopefully) simplify ports where the user passes the device string.
2012-05-11The default device is selected with sndiod(1) or the AUDIODEVICEAlexandre Ratchov
environment variable, so stop using the /dev/audio symlink which can't be used by sndiod(1) anyway
2012-04-11Use "unsigned int" rather than "unsigned". No object change.Alexandre Ratchov
suggested by deraadt@
2012-02-24Correct the spelling of "transferred" and "transferring"Philip Guenthe
from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
2011-12-24formatting errors, found using freebsd's "igor";Jason McIntyre
2011-12-09mention sndiod rather than aucat when talking about the serverAlexandre Ratchov
2011-11-15Add a "device number" component in sndio(7) device names, allowing aAlexandre Ratchov
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.
2011-10-22Don't attempt to send data not available for sending yet. AnalysedAlexandre Ratchov
and fixed by Remco <remco at d-compu.dyndns.org>, thanks!
2011-10-18some minor tweaks concerning midicat removal; ok ratchovJason McIntyre
2011-10-17Remove midicat since aucat can now be used instead of midicatAlexandre Ratchov
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
2011-10-05restart connect(2) if it returns EINTRAlexandre Ratchov
2011-10-04some tweaks, from Tim van der MolenJason McIntyre
2011-06-03one midicat server can export multiple midithru portsAlexandre Ratchov
2011-06-03don't forget to send the initial clock tickAlexandre Ratchov
2011-05-09in sio_psleep(), use an array of SIO_MAXNFDS pollfd strucures ratherAlexandre Ratchov
than a single one. No behaviour change
2011-05-06use an array of backends and iterate on it, instead of inliningAlexandre Ratchov
calls to sio_<backend>_open(). No behaviour change
2011-05-06remove almost two years old hack to support legacy audio/midiAlexandre Ratchov
device names
2011-05-03determine the default device in backend code instead of the commonAlexandre Ratchov
code. This is simpler as long as not all backends use the same default.
2011-05-02Add missing byter order conversions in message headers. Fixes the caseAlexandre Ratchov
when the server and the client are not of the same endianness. Found by naddy.
2011-05-02set the TCP_NODELAY option for TCP connectionsAlexandre Ratchov
2011-04-28Implement a new authentication method allowing aucat and midicat toAlexandre Ratchov
work over TCP, for instance, to expose the sound card of one machine with other machines of the network. The first client generates a 128-bit random number (aka the session cookie), saves it in $HOME/.aucat_cookie and sends it to the server. Successive clients load the cookie from $HOME/.aucat_cookie and send it to the server but the server accepts only clients whose cookie matches the session cookie. When all clients are gone, the session is over, and another cookie could start a new session, and so on. TCP is enabled on the server with the new -L option, and on the client side hostnames are specified with a new optional component in the device name. hints from damien, dlg and deraadt, tweaks from jmc
2011-04-27move amsg.h containing protocol defs from aucat side to libsndio side.Alexandre Ratchov
requested by deraadt
2011-04-18slightly cleanup by separating socket-specific code fromAlexandre Ratchov
protocol specific code. No behaviour change
2011-04-16remove aucat(1) and midicat(1) socket paths from the FILES sections.Alexandre Ratchov
Besides being wrong, they are part of sndio internals and don't need to be exposed in such a high level man page.
2011-04-16for unix domain socket addresses use AUCAT_PATH and MIDICAT_PATHAlexandre Ratchov
macros instead of hardcoded strings. No object change
2011-04-16Since aucat supports any parameter combination sio_getcap() doesn'tAlexandre Ratchov
need to query the server for supported parameters. So stop using the AMSG_GETCAP message, and remove it completely from the aucat protocol.
2011-04-16Make aucat audio and midi backends share the same code to communicateAlexandre Ratchov
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.
2011-04-12Use mio_<backend>_ prefix for private midi-related functions and putAlexandre Ratchov
them in files named mio_<backend>.c No behaviour change.
2011-04-08Clean up function naming: use sio_<backend>_ prefix for privateAlexandre Ratchov
audio-related functions and put them in files named sio_<backend>.c No behaviour changes.
2010-11-06tweak previous;Jason McIntyre
2010-11-06make sio_onvol(3) return a integer exposing whether a volume knobAlexandre Ratchov
is available for the stream. As we're at it, remove macros and functions that are neither used nor documented.
2010-10-23add forgotten ``static''Alexandre Ratchov