[mythtv-users] Audio to 3 devices
Karl Newman
newmank1 at asme.org
Mon Aug 18 22:15:18 UTC 2014
On Mon, Aug 18, 2014 at 12:59 PM, Josu Lazkano <josu.lazkano at gmail.com>
wrote:
> 2014-08-18 21:40 GMT+02:00 Karl Newman <newmank1 at asme.org>:
> >
> > Nicley done. I'm always baffled by the asoundrc syntax. Maybe you could
> > insert another 6-channel "multi" which sends one copy to the receiver
> with
> > all 6 channels and sends another copy to your "route", which then
> collapses
> > the 6 channels to 2, then chain the "route" to the existing "multi" (but
> > remove the receiver as a slave from that one).
> >
> > Karl
>
> Thanks Karl, but I don't know how to write this in the ".asound" file.
>
> Could someone help with the syntax?
>
> I'll give it a stab, going by
http://alsa.opensrc.org/Asoundrc#Dupe_output_to_multiple_cards as a guide.
Their solution is a little more concise than what I was thinking. Try this:
pcm.!default {
type plug
slave {
pcm "both"
}
}
pcm.both {
type route
slave.pcm {
type multi
slaves.a {
pcm "receiver"
channels 6
}
slaves.b {
pcm "tv"
channels 2
}
slaves.c {
pcm "analog"
channels 2
}
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave b
bindings.6.channel 0
bindings.7.slave b
bindings.7.channel 1
bindings.8.slave c
bindings.8.channel 0
bindings.9.slave c
bindings.9.channel 1
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.2 1.0
ttable.3.3 1.0
ttable.4.4 1.0
ttable.5.5 1.0
ttable.6.0 1.0
ttable.7.1 1.0
ttable.8.0 1.0
ttable.9.1 1.0
}
pcm.tv {
type hw
card 1
device 7
channels 2
}
pcm.receiver {
type hw
card 0
device 1
channels 2
}
pcm.analog {
type hw
card 0
device 0
channels 2
}
I have no idea if that many channels is acceptable in the multi or route
plugins. Also note that the "tv" and "analog" are getting only the front
left/right channels (but it was that way in your original file, too).
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140818/cf43d670/attachment.html>
More information about the mythtv-users
mailing list