Yet another round around surround
Hi,
in the previous mail, I forgot the newest one. (Per request from
Lee) I implemented A52 (aka AC3) output plugin. This requires libavcodec of ffmpeg as the encoding engine, thus the plugin itself is pretty clean and simple.
The plugin encodes 2-6 channel PCM input and outputs the compressed stream to SPDIF. When you have an SPDIF output device on your board, you can try this. For example, define the below in ~/.asoundrc:
pcm.a52out {
type plug
slave.pcm {
type upmix
slave.pcm {
type a52
}
}
}then you can play via "a52out" PCM
% aplay -Da52out foo.wav
See alsa-plugins/doc/a52.txt for details.
BTW, combining this one and dmix is impossible, unfortunately, because dmix needs the background-DMA transfer but this plugin does explicit copying.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642