At Wed, 28 Jan 2004 18:05:46 +0100,
Florian Schmidt wrote:
> 
> 
> Hi, as far as i understand it, the copy plugin does nothing but copy its
> input to its output. I wonder if it would be easily possible to extend
> this plugin to copy to multiple slave pcms. This way it would be
> (easily?) possible to "distribute" a stereo signal to 4 or even 6
> channels.

route (and plug) plugin already can do that.
for example,

pcm.ch40dup {
        type route
        slave.pcm surround40
        slave.channels 4
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 1
        ttable.1.3 1
}

pcm.ch51dup {
        type route
        slave.pcm surround51
        slave.channels 6
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 1
        ttable.1.3 1
        ttable.0.4 0.5
        ttable.1.4 0.5
        ttable.0.5 0.5
        ttable.1.5 0.5
}


and you can play two channel WAV like

        % aplay -Dch40dup 2ch-stereo.wav

        % aplay -Dch51dup 2ch-stereo.wav

for 4.0 and 5.1 surrounds, respectively.
of course, this is just copy of left/right samples, no dolby prologic 
effect is included ;)


Takashi


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to