Up to [local] / src / usr.bin / aucat
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.20, Mon Oct 17 21:09:11 2011 UTC (12 years, 7 months ago) by ratchov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +1 -1 lines
FILE REMOVED
Remove midicat since aucat can now be used instead of midicat 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
Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 12 12:16:10 2011 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored)
- avoid line wrapping an example - sort usage() for midicat - tweak a bit of unclear wording ok ratchov
Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 12 07:20:04 2011 UTC (12 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.17: +30 -16 lines
Diff to previous 1.17 (colored)
Simplify and improve the way options are parsed and remove ~300 lines 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
Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 20 20:18:44 2011 UTC (12 years, 11 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.16: +18 -2 lines
Diff to previous 1.16 (colored)
Make -aoff option apply to MIDI ports (-q) as well, ensuring the device stays closed also if -q is used. As we're at it, add -a to midicat so it behaves like aucat.
Revision 1.16 / (download) - annotate - [select for diffs], Tue May 3 08:00:54 2011 UTC (13 years ago) by ratchov
Branch: MAIN
Changes since 1.15: +7 -2 lines
Diff to previous 1.15 (colored)
If the string of the address to listen on is '-' then listen on all addresses (ie pass NULL to getaddrinfo which would return 0.0.0.0 and :: in most cases)
Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 28 06:19:57 2011 UTC (13 years ago) by ratchov
Branch: MAIN
Changes since 1.14: +14 -2 lines
Diff to previous 1.14 (colored)
Implement a new authentication method allowing aucat and midicat to 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
Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 21 16:33:17 2011 UTC (13 years, 2 months ago) by okan
Branch: MAIN
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)
grammar fixes from Michael W. Bombardieri; also emphasize stderr, as most pages do already. ok jmc@ ratchov@
Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 6 10:45:01 2010 UTC (13 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)
various tweaks to previous; ok ratchov
Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 6 01:12:45 2010 UTC (13 years, 10 months ago) by ratchov
Branch: MAIN
Changes since 1.11: +95 -65 lines
Diff to previous 1.11 (colored)
Handle all streams the same way because there's no actual difference between audio files and client connections. Clean up the way command line options are handled and clarify this in the manual page: stream parameters (-Ccehjmrtvx) must precede stream definitions (-ios) and per-device parameters (-abz) and stream definitions (-ios) must precede device definitions (-f). Since there's no ``server'' and ``non-server'' modes anymore, make the -l option just detach the process. ok and help from jakemsr and jmc
Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 22 18:27:19 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)
zap trailing whitespace;
Revision 1.10 / (download) - annotate - [select for diffs], Thu Apr 22 17:43:30 2010 UTC (14 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.9: +12 -2 lines
Diff to previous 1.9 (colored)
Allow multiple users to share the same aucat server. If aucat is run by root, it binds a shared address to the socket, cranks the process priority and drops privileges. sio_open(3) will try to connect to the private socket first (if any), then to the shared socket. Only one user may have connections to aucat at a given time. based on discussions with henning, pyr and others ok jacek, deraadt
Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 6 20:07:01 2010 UTC (14 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.8: +8 -10 lines
Diff to previous 1.8 (colored)
aucat (server): - make the ``-m mode'' option per subdevice, allowing subdevices to be play-only or rec-only even if the server is full-duplex - add ``monitoring'' mode (with ``-m mon''). This is a record-only stream from which played streams can be recorded (kind of ``record what you hear''). - allow MIDI devices to be subscribed to the controlling MIDI port of the server, ie what midicat does (with -f option), but using the -q option. - add flow control to the protocol, and serialize clock ticks (sio_onmove() calls) and data chunks. This should fix certain full-duplex programs, broken with ``magic'' block/buffer size combinations. - enable 3 block latency which is the minimum theoretical. Make -z and -b options correspond to device parameters. - make sio_getcap(3) the same for aucat and sun backends, ie return whatever is supported (``everything'' in the aucat case, since everything is actulally supported). aucat (player): - enable ``-m mode'' option to select between monitoring and recording when ``-o file'' is used. - plug MIDI code to non-server codepath. The MIDI control device is specified with the ``-q device'' option, as in server mode. - impliment lseek()'ing within files (controlled through MIDI). Necessary to use aucat with a MIDI sequencer. midicat (thrubox): - rename ``-f'' flag to ``-q'', so it has the same name as in aucat (-f is still working) ok jakemsr@, tweaks from jmc@
Revision 1.8 / (download) - annotate - [select for diffs], Sat Apr 3 17:59:17 2010 UTC (14 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.7: +8 -6 lines
Diff to previous 1.7 (colored)
backout last change, committed by mistake, sorry...
Revision 1.7 / (download) - annotate - [select for diffs], Sat Apr 3 17:40:33 2010 UTC (14 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.6: +8 -10 lines
Diff to previous 1.6 (colored)
doc fixes from jmc
Revision 1.6 / (download) - annotate - [select for diffs], Thu Oct 22 21:14:10 2009 UTC (14 years, 6 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.5: +5 -3 lines
Diff to previous 1.5 (colored)
use .Ux in midicat.1, as we do for aucat.1 now
Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 12 17:32:33 2009 UTC (14 years, 7 months ago) by sobrado
Branch: MAIN
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (colored)
sort flags in description.
Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 5 07:05:24 2009 UTC (14 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.3: +9 -3 lines
Diff to previous 1.3 (colored)
add -d flag. When started in server mode, if the -d flag is used aucat and midicat don't daemonize and log on stderr.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 27 11:51:20 2009 UTC (14 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.2: +2 -13 lines
Diff to previous 1.2 (colored)
remove all debug traces
Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 17 15:07:49 2009 UTC (14 years, 9 months ago) by ratchov
Branch: MAIN
Changes since 1.1: +4 -3 lines
Diff to previous 1.1 (colored)
if one or more MIDI devices are specified in server mode, subscribe them to the MIDI thru box
Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 25 08:44:27 2009 UTC (14 years, 9 months ago) by ratchov
Branch: MAIN
Currently midi capable programs can control midi hardware, but cannot cooperate with other programs. The aim of this change is to allow any program to send midi data to other programs as they were midi hardware. For instance, this change should solve the longstanding problem of using a midi sequencer with software synthesizers. More precisely: - new midicat(1) utility (actually hardlink to aucat(1)). it creates software midi thru boxes, allowing programs to send midi messages to other programs as they were midi(4) hardware. - new midi api in libsndio (see mio_open(3)), to access midi(4) devices and midicat(1) sockets in a uniform way. - new device naming scheme <service>:<unit>[.<option>], common to audio and midi. - new sndio(7) manual describing concepts and naming The current audio device naming still works, but people having scripts or configuration files containing device names could read the sndio(7) man page and slowly start updating device names. discussed with jakemsr@ and deraadt@, help form jmc@