summaryrefslogtreecommitdiff
path: root/usr.bin/aucat
AgeCommit message (Collapse)Author
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
2011-10-12Simplify and improve the way options are parsed and remove ~300 linesAlexandre Ratchov
of code that becomes unused. Few command line arguments changes are required though: - stream definitions (-ios) now must follow devices definitions they are attached to (-fMn) - the -n option is now a special "loopback" device and is thus used like -f, eg it must precede streams - in midicat, midi thru boxes are not created automatically anymore, the new "-M" option must be used for that - channel numbers (-Cc options) correspond always to channel numbers of the hardware. - the -u option isn't needed anymore - increase the log verbosity so user errors are logged without using -d tested by many, help from jmc
2011-06-30switch to license in /usr/share/misc/license.templateAlexandre Ratchov
2011-06-29make -u flag per-device similarly to -a and -wAlexandre Ratchov
2011-06-27remove two forgotten debug printf()sAlexandre Ratchov
2011-06-27Display the CPU usage when -ddddd is used, ie the time spent onAlexandre Ratchov
calculations compared to the time spend on sleeping in poll().
2011-06-27expose audio client names through sysex messages, this way anyAlexandre Ratchov
midi client could determine which volume knob corresponds to which client. Such sysex messages are ignored by hardware or software that don't understand them
2011-06-20Make -aoff option apply to MIDI ports (-q) as well, ensuring the deviceAlexandre Ratchov
stays closed also if -q is used. As we're at it, add -a to midicat so it behaves like aucat.
2011-06-03Allow device encoding to be set if -u is also used. Useful to degradeAlexandre Ratchov
quality to save bandwith when a remote audio device is used.
2011-06-03factor tests for f->opt->join flag, no behaviour changeAlexandre Ratchov
2011-06-03Clarify that the ratio between sample rate and block sizeAlexandre Ratchov
is the MTC clock rate. Suggested by Alexey Suslikov
2011-06-03Reorganize the way command line options are parsed and stored.Alexandre Ratchov
No behaviour change.
2011-06-03update EXAMPLES to use "-joff", since "-jon" is the defaultAlexandre Ratchov
found by peters at schwertfisch.de, thanks
2011-06-02If there are no descriptors to poll, just sleep until SIGALRMAlexandre Ratchov
is posted and then update all timers and restart the event loop. Fixes throtteling while midi inputs are drained.
2011-06-02close midi control ports and thru boxes only when there are noAlexandre Ratchov
inputs anymore, to ensure data is drained
2011-06-02don't exit from the main loop if there are pending time outs.Alexandre Ratchov
Fixes midi inputs not being properly drained when they are temporarily blocked to limit input data rate
2011-05-26tweak previous;Jason McIntyre
2011-05-26slightly clarify -v option descriptionAlexandre Ratchov
2011-05-26make clipping less ugly, from Sviatoslav ChagaevAlexandre Ratchov
2011-05-26add a new -w flag to control whether master volume is automaticallyAlexandre Ratchov
adjusted when new streams are connected and disconnected. Disabling automatic volume adjustment makes sense if all streams are recorded with properly lowered volumes.
2011-05-23postion -> position;Jason McIntyre
2011-05-10fix option handling and enable TCP in midicatAlexandre Ratchov
from peters at schwertfisch.de, thanks!
2011-05-09move all hardcoded offsets and constants relative to midi systemAlexandre Ratchov
exclusive messages in a nice sysex.h file. No behaviour change.
2011-05-09initialize 'pstate' field of the wav structureAlexandre Ratchov
2011-05-03If the string of the address to listen on is '-' then listen on allAlexandre Ratchov
addresses (ie pass NULL to getaddrinfo which would return 0.0.0.0 and :: in most cases)
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-05-02fix string containing state names used for debug printf()s,Alexandre Ratchov
add the missing SOCK_AUTH state
2011-04-28- slight tweak for FILESJason McIntyre
- reword EXAMPLES a little, for readability
2011-04-28remove deadcode, use err(1, "%s", str) instead of err(1, str)Alexandre Ratchov
from Michael W. Bombardieri <mb at ii.net>, thanks!