John W. Cocula wrote:
> Let me clarify: the real issue is *mixing* normal stereo out the L and R
> channels, while a mono channel is also coming out the center speaker. So,
> like dmix, but dmix only works with the first 2 channels? Any solutions
> short of using JACK?
>
> The following fragment works to drive only the center channel, but other
> ALSA players block.
>
> pcm.voice {
> type plug
> slave {
> pcm "surround51"
> }
> ttable.0.4 1
> }
You don't need dmix for this, because you don't want to mix several
sources to the same channel. Try something like this (untested):
pcm_slave.slave51 {
pcm surround51
channels 6
rate 48000 # not sure if this is needed
}
pcm.shared_l_r {
type dshare
slave slave51
ipc_key 123456
bindings {
0 0
1 1
}
}
pcm.shared_c {
type dshare
slave slave51
ipc_key 123456
bindings {
0 4
}
}
pcm.l_r { # same as shared_l_r, but for other sample rates etc.
type plug
pcm.slave shared_l_r
}
pcm.center {
type plug
pcm.slave shared_c
}
HTH
Clemens
-------------------------------------------------------
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-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user