summaryrefslogtreecommitdiff
path: root/usr.bin/aucat
AgeCommit message (Collapse)Author
2012-10-27include netinet/in.h to get htons & friends prototypesAlexandre Ratchov
2012-10-27don't stat & test sndio home directory since we never use it.Alexandre Ratchov
2012-10-27don't (re-)define SNDIO_USER and SNDIO_PRIO if they are already defined,Alexandre Ratchov
this way they can be defined at compilation time
2012-10-27use unsigned chars for midi messages (to avoid gcc warning)Alexandre Ratchov
2012-09-25Upon "master volume change" message, send feedback to other clientsAlexandre Ratchov
only. Fixes the master volume slider stuttering in MIDI programs. Found by armani@
2012-08-30Use (rate / 15) as block size in off-line mode to ensure theAlexandre Ratchov
block size stays below SHORT_MAX. Found by sthen@
2012-06-27Uniformize error messages printing, use err() instead of fprintf()Alexandre Ratchov
when appropriate. From Michael W. Bombardieri <mb at ii.net>
2012-06-27Don't return void expressions in functions returning void. RemovesAlexandre Ratchov
warnings in clang. From dhill. Thanks!
2012-06-19Remove hidden options that are not needed any more,Alexandre Ratchov
from Remco <remco at d-compu.dyndns.org>. Thanks
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-23Fix duplicate mixer knob namesAlexandre Ratchov
2012-05-23Fix wrong arithmetics in channel mapping causing crashes if all ofAlexandre Ratchov
the recorded or played channels don't exist. With help from Remco <remco at d-compu.dyndns.org>, thanks!
2012-04-25Fix typos, from Michael W. Bombardieri <mb at ii.net>, Thanks!Alexandre Ratchov
2012-04-25later -> latter;Jason McIntyre
2012-04-19unbreak compilation without DEBUG definedAlexandre Ratchov
2012-04-11In the "reply" code path, lock the socket while invoking theAlexandre Ratchov
write-end code from the read-end code, and don't forget to check if the socket was not destroyed. Fixes very rare random crashes.
2012-04-11flush the log and abort() if we try to destroy a NULL aprocAlexandre Ratchov
2012-04-11Use "unsigned int" rather than "unsigned". No object change.Alexandre Ratchov
suggested by deraadt@
2012-04-04tweak previous; ok ratchovJason McIntyre
2012-04-04Add a simple and clear (hopefully) description of what sndiod does.Alexandre Ratchov
discussed with deraadt and jmc
2012-04-04Fix memory leak in the error handling code path of failed deviceAlexandre Ratchov
creation. From jsg@
2012-03-29Don't spin if accept() fails because it is out of file descriptors,Alexandre Ratchov
instead set a flag that skips the listening socket from the poll() event loop. The flag is cleared whenever a file descriptor is closed allowing accept() to be retried. Explained by deraadt@
2012-03-23add a MIDI-controlled master volume knob to adjust the mix ofAlexandre Ratchov
all playback stream, discussed with armani@
2012-02-09Crank the default buffer size to 160ms (ie 7680 frames at 48kHz).Alexandre Ratchov
Workarounds stuttering caused by something hogging the cpu in kernel mode and preventing sndiod from running at time. ok deraadt
2012-01-26Make the default rate 48kHz and the default block size 10ms. TheseAlexandre Ratchov
settings ensure video players and programs using MTC are smooth by default. Thanks to all who tested.
2012-01-14remove unused variables, from Michael W. Bombardieri, thanks!Alexandre Ratchov
2012-01-10Fix the way the mixer figures out which groups of streams haveAlexandre Ratchov
common channels and thus need to share their dynamic range. Fixes, unnecessarily decreased volume in some theoretical cases.
2012-01-10hide "device disappeared" messages unless -d is usedAlexandre Ratchov
2012-01-10When a sub-device is created (-s), check if a hardwareAlexandre Ratchov
device was already created (-f) before trying to use the default one, otherwise all sub-devices end up attached to the default device. Noticed by peters at schwertfisch.de, thanks!
2011-12-09zap trailing whitespace, from jmcAlexandre Ratchov
2011-12-09fix usage string: remove -M from aucat and -l from aucat and sndiodAlexandre Ratchov
from jmc
2011-12-09add a new sndiod audio/midi daemon and hide aucat server-specificAlexandre Ratchov
options.
2011-12-02don't use a "server" flag, just check if we expose sub-devicesAlexandre Ratchov
2011-12-02reuse midi-control code to implement midi thru boxes and removeAlexandre Ratchov
the old midithru implementation; less code, less bugs. As a side effect, midi output doesn't implement running status "compression" any more.
2011-12-02initialize device reference counter, unbreaks -aoffAlexandre Ratchov
with MALLOC_OPTIONS=J
2011-12-02remove unused 'reqrate' parameterAlexandre Ratchov
2011-12-02don't add .wav header to .syx filesAlexandre Ratchov
2011-11-20Move mmc/mtc and volume control bits from struct aproc to structAlexandre Ratchov
dev. Allows volume settings to be saved while the device is kept closed. Besides that, no behabiour changes.
2011-11-16mark the device as closed before closing streams attached to it.Alexandre Ratchov
otherwise a stream may try to close the device a second time.
2011-11-16prefix device-specific messages by the device name, since weAlexandre Ratchov
support multiple devices
2011-11-16consider there's no dependency between two aprocs, ifAlexandre Ratchov
one of them is NULL
2011-11-15make midi 'owner' pointer per-outputAlexandre Ratchov
2011-11-15add missing full stop;Jason McIntyre
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-24mention that -aoff is not the default for the default deviceAlexandre Ratchov
2011-10-18keep the device closed by default (when not used)Alexandre Ratchov
2011-10-18remove duplicate options in getopt() stringAlexandre Ratchov
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-14s/chuck/chunk/, from Remco, thanks!Alexandre Ratchov
2011-10-12- avoid line wrapping an exampleJason McIntyre
- sort usage() for midicat - tweak a bit of unclear wording ok ratchov