Up to [local] / src / usr.bin / aucat
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.22, Tue Nov 12 06:47:34 2013 UTC (10 years, 7 months ago) by ratchov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +1 -1 lines
FILE REMOVED
remove bogus legacy server-specific bits that cause confusion
Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 2 10:24:58 2012 UTC (11 years, 7 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)
Use dedicated messages for flow control instead of abusing clock tick 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.
Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 11 06:05:43 2012 UTC (12 years, 2 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2
Changes since 1.19: +13 -13 lines
Diff to previous 1.19 (colored)
Use "unsigned int" rather than "unsigned". No object change. suggested by deraadt@
Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 28 06:19:57 2011 UTC (13 years, 1 month ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.18: +9 -8 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Thu Oct 21 18:57:42 2010 UTC (13 years, 7 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)
use MODE_xxx and XRUN_xxx macros everywhere, and zap corresponding AMSG_xxx macros, which in turns simplifies the code
Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 5 12:45:48 2010 UTC (14 years ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)
Don't send the initial position as a clock tick with a negative delta. Add a new ``initial position'' message which is simpler. No bahaviour change, except effects of the protocol version crank.
Revision 1.16 / (download) - annotate - [select for diffs], Fri Jun 4 06:15:28 2010 UTC (14 years ago) by ratchov
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)
Allow the audio device to be opened only while it's actually used. This is necessary for uaudio devices, for instance to start aucat before the device is plugged. Or to unplug a device whithout having to restart aucat when another device is plugged. This is controlled with the new -a option. Allow multiple audio devices to be used concurently, i.e. multiple ``-f devname'' options to be used; -f options must follow per-device options, which is what we do for other options.
Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 6 20:07:01 2010 UTC (14 years, 2 months ago) by ratchov
Branch: MAIN
Changes since 1.14: +8 -3 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Sat Apr 3 17:59:17 2010 UTC (14 years, 2 months ago) by ratchov
Branch: MAIN
Changes since 1.13: +2 -7 lines
Diff to previous 1.13 (colored)
backout last change, committed by mistake, sorry...
Revision 1.13 / (download) - annotate - [select for diffs], Sat Apr 3 17:40:33 2010 UTC (14 years, 2 months ago) by ratchov
Branch: MAIN
Changes since 1.12: +8 -3 lines
Diff to previous 1.12 (colored)
doc fixes from jmc
Revision 1.12 / (download) - annotate - [select for diffs], Fri Jan 15 22:17:44 2010 UTC (14 years, 4 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)
*** empty log message ***
Revision 1.11 / (download) - annotate - [select for diffs], Sun Sep 27 11:51:20 2009 UTC (14 years, 8 months ago) by ratchov
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)
remove all debug traces
Revision 1.10 / (download) - annotate - [select for diffs], Wed Aug 26 06:10:15 2009 UTC (14 years, 9 months ago) by ratchov
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)
don't mess with audio internals from within the midi bits. Instead use a call-back interface. This allows easily sending volume changes feedback to audio applications.
Revision 1.9 / (download) - annotate - [select for diffs], Fri Aug 21 16:48:03 2009 UTC (14 years, 9 months ago) by ratchov
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)
make aucat(1) expose a MIDI device to control server behaviour in realtime. For now only the playback volume of individual streams can be changed/monitored. To each stream is assigned a MIDI channel; the volume is changed/monitored using the standard controller number 7.
Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 25 10:52:19 2009 UTC (14 years, 10 months ago) by ratchov
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)
fix comments, remove no longer needed declaration, reorder includes from Thomas Pfaff
Revision 1.7 / (download) - annotate - [select for diffs], Sat Jul 25 08:44:27 2009 UTC (14 years, 10 months ago) by ratchov
Branch: MAIN
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)
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@
Revision 1.6 / (download) - annotate - [select for diffs], Sat May 16 12:20:31 2009 UTC (15 years ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)
use the ``hello'' message a to set the device mode, and thus make it mandatory. Old legacy clients setting the mode with sio_setpar() are still working thanks to small hack.
Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 6 08:29:35 2009 UTC (15 years, 4 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)
simplify the clock tick messages generation code and ensuire that the first clock tick (ie the start tick) is not lost
Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 16 18:34:56 2008 UTC (15 years, 6 months ago) by ratchov
Branch: MAIN
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored)
add ``template'' parameters to sockets rather than using device parameters. No functional change.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 16 16:30:22 2008 UTC (15 years, 6 months ago) by ratchov
Branch: MAIN
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)
Make clients inherit the volume parameter when the -v option is used in server mode. It gives the maximum volume a client may have. This wastes dynamic range, but allows volume to stay constant when other clients connect or disconnect.
Revision 1.2 / (download) - annotate - [select for diffs], Tue Nov 11 19:21:20 2008 UTC (15 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)
expose the volume knob in server mode too
Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 26 08:49:44 2008 UTC (15 years, 7 months ago) by ratchov
Branch: MAIN
add minimal server capability to aucat(1). When started in server mode, it listens on an unix socket and mixes/demultiplexes any number of full-duplex streams, doing necessary format conversions and resampling on the fly. programs can use the new libsa(3) library to play and record audio. The library provides a very simple API to connect to the audio server; if aucat(1) isn't running, it uses the audio(4) driver transparently instead.