2013-01-22, 20:23
tknorris, would I just duplicate everything in asound.conf and replace dmix0 with dmix1 or is there a simpler way to make multiple devices in there?
pcm.digital_hw {
type hw
card 0
device 1
channels 2
}
pcm.digital_dmix1 {
type dmix
ipc_key 1024
slave {
pcm "digital_hw"
rate 48000
}
}
pcm.digital_dmix2 {
type dmix
ipc_key 1025
slave {
pcm "digital_hw"
rate 48000
}
}
}
pcm.!default {
type plug
slave {
pcm "both"
}
}
pcm.both {
type route
slave {
pcm multi
channels 6
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
ttable.0.4 0.5
ttable.1.4 0.5
ttable.0.5 0.5
ttable.1.5 0.5
}
pcm.multi {
type multi
slaves.a {
pcm "hdmi_dmix"
channels 2
}
slaves.b {
pcm "digital_dmix"
channels 2
}
slaves.c {
pcm "analog_dmix"
channels 2
}
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
bindings.4.slave c
bindings.4.channel 0
bindings.5.slave c
bindings.5.channel 1
}
pcm.hdmi_hw {
type hw
card 0
device 3
channels 2
}
pcm.digital_hw {
type hw
card 0
device 1
channels 2
}
pcm.analog_hw {
type hw
card 0
device 0
channels 2
}
pcm.hdmi_dmix {
type dmix
ipc_key 1024
slave {
pcm "hdmi_hw"
rate 48000
}
}
pcm.digital_dmix {
type dmix
ipc_key 1025
slave {
pcm "digital_hw"
rate 48000
}
}
pcm.analog_dmix {
type dmix
ipc_key 1026
slave {
pcm "analog_hw"
rate 48000
}
}
Quote:Now I just need to get squeezeslave to start up automatically and all will be well. WoL would be nice too if I can get that figured out.Depends a bit on your system, but generally putting a .desktop file in ~/.config/autostart should work to get something started on user login.
(2013-02-12, 05:15)nickr Wrote:Quote:Now I just need to get squeezeslave to start up automatically and all will be well. WoL would be nice too if I can get that figured out.Depends a bit on your system, but generally putting a .desktop file in ~/.config/autostart should work to get something started on user login.
If you are using xbmcbuntu though I think things are handled a bit differently. Basically xbmc is I think the only thing started on auto login, so you may need to hack the script that starts xbmc.