| Server IP : 185.11.201.71 / Your IP : 192.168.7.18 Web Server : Apache/2.4.29 (Ubuntu) System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : tech ( 1000) PHP Version : 7.4.28 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/libasound2-plugins/ |
Upload File : |
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 "slavepcm" option specifies a string of the slave PCM
explicitly. This is useful if a device has no proper SPDIF
configuration (e.g. usb-audio), or if you want to pass your own PCM
definition. This option is exclusive with "card" option.
- 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
}
For using slavepcm option,
pcm.mypcm {
card 1
device 2
}
pcm.myout {
type a52
slavepcm "mypcm"
}
The plugin reads always S16 format (i.e. native-endian) as input, so
you'd need plug layer appropriately to covert it.