summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-04-06 17:53:07 +0200
committerTakashi Iwai <tiwai@suse.de>2006-04-06 17:53:07 +0200
commit2559a56209c6729574b8cb16c5be63e1cc2f1c04 (patch)
tree054f6917bb3add9e6e34742fbc3c4f2807055d59 /doc
parentbc0c2843db4dea70251e8c5b4a9272ce40caa7f2 (diff)
Add a52 output plugin
Added (experimental) a52 output plugin. The plugin requires libavcodec as the audio encoding engine. See doc/a52.txt for the usage.
Diffstat (limited to 'doc')
-rw-r--r--doc/a52.txt48
1 files changed, 48 insertions, 0 deletions
diff --git a/doc/a52.txt b/doc/a52.txt
new file mode 100644
index 0000000..236e64a
--- /dev/null
+++ b/doc/a52.txt
@@ -0,0 +1,48 @@
+A52 OUTPUT PLUGIN
+=================
+
+This plugin converts S16 linear format to A52 compressed stream and
+send to an SPDIF output. It requires libavcodec for encoding the
+audio stream.
+
+A PCM using this plugin can be defined like below:
+
+ pcm.myout {
+ type a52
+ }
+
+In addition, the following options are available:
+
+- The "card" option specifies the card ID or number of the SPDIF.
+ The output PCM becomes "iec958:{CARD=$CARD}" with extra AESx
+ settings. When omitted, the default card is used.
+
+- The "rate" option specifies the input/output sample rate in HZ.
+ The accepted rate is either 44100 or 48000.
+ When omitted, 48000 is used.
+
+- The "channels" option specifies the number of _input_ channels.
+ It must be either 2, 4 or 6. The default value is 6.
+
+- The "bitrate" option specifies the bit-rate of the compressed
+ stream in kbps. Too small or too big value may not be accepted by
+ the encoder. When omitted, 448 is used.
+
+- The "format" option specifies the output format type. It's either
+ S16_LE or S16_BE. As default, S16_LE is used.
+
+An example using the secondary card, 44.1kHz, 4 channels, output
+bitrate 256kbps and output format S16_BE looks like below:
+
+ pcm.myout {
+ type a52
+ card 1
+ rate 44100
+ channels 4
+ bitrate 256
+ format S16_BE
+ }
+
+
+The plugin reads always S16 format (i.e. native-endian) as input, so
+you'd need plug layer appropriately to covert it.