=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/sndiod.8,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/sndiod/sndiod.8 2016/01/18 11:38:07 1.2 +++ src/usr.bin/sndiod/sndiod.8 2019/09/21 04:42:46 1.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sndiod.8,v 1.2 2016/01/18 11:38:07 ratchov Exp $ +.\" $OpenBSD: sndiod.8,v 1.3 2019/09/21 04:42:46 ratchov Exp $ .\" .\" Copyright (c) 2006-2012 Alexandre Ratchov .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 18 2016 $ +.Dd $Mdocdate: September 21 2019 $ .Dt SNDIOD 8 .Os .Sh NAME @@ -29,10 +29,12 @@ .Op Fl C Ar min : Ns Ar max .Op Fl c Ar min : Ns Ar max .Op Fl e Ar enc +.Op Fl F Ar device .Op Fl f Ar device .Op Fl j Ar flag .Op Fl L Ar addr .Op Fl m Ar mode +.Op Fl Q Ar port .Op Fl q Ar port .Op Fl r Ar rate .Op Fl s Ar name @@ -182,6 +184,18 @@ Only the signedness and the precision are mandatory. Examples: .Va u8 , s16le , s24le3 , s24le4lsb . +.It Fl F Ar device +Specify an alternate device to use. +If doesn't work, the one given with the last +.Fl f +or +.Fl F +options will be used. +For instance, specifying a USB device following a +PCI device allows +.Nm +to use the USB one preferably when it's connected +and to fall back to the PCI one when it's disconnected. .It Fl f Ar device Add this .Xr sndio 7 @@ -245,6 +259,15 @@ The default is .Ar play , Ns Ar rec (i.e. full-duplex). +.It Fl Q Ar port +Specify an alternate MIDI port to use. +If doesn't work, the one given with the last +.Fl Q +or +.Fl q +options will be used. +For instance, this allows to replace a USB MIDI controller without +the need to restart programs using it. .It Fl q Ar port Expose the given MIDI port. This allows multiple programs to share the port. @@ -376,11 +399,15 @@ If .Nm is sent -.Dv SIGHUP , .Dv SIGINT or .Dv SIGTERM , it terminates. +If +.Nm +is sent +.Dv SIGHUP , +it reopens all audio devices and MIDI ports. .Pp By default, when the program cannot accept recorded data fast enough or cannot provide data to play fast enough,