]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/1/audio
libmp: add mpnrand() function to generate uniform random number 0 ≤ x < n
[plan9front.git] / sys / man / 1 / audio
index e751f9fb48e60434d2a0f266b4453d7382a3b528..7e394b0071047509344d9f99cb5a8358fe51a571 100644 (file)
@@ -1,6 +1,6 @@
 .TH AUDIO 1
 .SH NAME
-mp3dec, mp3enc, oggdec, oggenc, flacdec, sundec, wavdec, pcmconv \- decode and encode audio files
+mp3dec, mp3enc, oggdec, oggenc, flacdec, sundec, wavdec, pcmconv, mixfs \- decode and encode audio files
 .SH SYNOPSIS
 .B audio/mp3dec
 [
@@ -53,6 +53,17 @@ q ] [
 .I length
 ]
 .PP
+.B audio/mixfs
+[
+.B -D
+] [
+.B -s
+.I srvname
+] [
+.B -m
+.I mtpt
+]
+.PP
 .SH DESCRIPTION
 These programs decode and encode various audio formats from and to
 16-bit stereo PCM (little endian). The decoders read the compressed
@@ -87,6 +98,14 @@ but that can be changed via
 or
 .BR -v
 (variable bitrate, VBR).
+.PP
+.I Oggenc
+accepts raw PCM in the same byte order as
+.B /dev/audio
+(little-endian),
+t
+.I mp3enc -r
+expects big-endian.
 .SS Options
 .TF "\fB-b \fP"
 .TP
@@ -260,6 +279,38 @@ until it reached end of file or, if
 was given, a number of
 .I length
 bytes have been consumed from input.
+.PP
+.I Mixfs
+is a fileserver serving a single
+.B audio
+file which allows simultaneous playback of audio streams. When
+run, it binds over
+.B /dev/audio
+and mixes the audio samples that are written to it.
+A service name
+.I srvname
+can be given with the
+.B -s
+option which gets posted to
+.BR /srv .
+By default,
+.I mixfs
+mounts itself on
+.B /mnt/mix
+and then binds
+.B /mnt/mix/audio
+over
+.BR /dev .
+A alternative mountpoint 
+.I mtpt
+can be specified with the
+.B -m
+option.
+The
+.B -D
+option causes
+.B 9p
+debug messages to be written to file-descriptor 2.
 .SH EXAMPLE
 Play back an
 .L .mp3
@@ -273,7 +324,7 @@ Encode a
 file as highest-quality MP3.
 .IP
 .EX
-audio/mp3enc -q 0 -b 320
+audio/mp3enc -q 0 -b 320 <foo.wav >foo.mp3
 .EE
 .LP
 Create a fixed 128Kb/s MP3 file from a
@@ -303,5 +354,8 @@ dd -conv swab | audio/mp3enc -a -r -m m --resample 16 -b 24
 .B http://xiph.org/doc/
 .br
 .B http://flac.sourceforge.net/documentation.html
-.SH BUGS
-It's another GNU behemoth, lightly tamed.
+.SH HISTORY
+.I Pcmconv
+first appeared in 9front (December, 2012).
+.I Mixfs
+first appeared in 9front (December, 2013).