This will get you software mixing (multiple sounds at the same time), and lets you play MP3s in xmms on your surround boxes, not just on your front left and right boxes.
First, create a .asoundrc file in your home directory, and put this into it:
Code:
pcm.dmix51 {
type dmix
ipc_key 1024
slave {
pcm "hw:0,1"
rate 48000
channels 6
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
pcm.stereo {
type plug
slave.pcm "dmix51"
ttable.0.0 1
ttable.1.1 1
}
pcm.!default {
type plug
slave.pcm "stereo"
}
pcm.duplicate {
type plug
slave.pcm "dmix51"
slave.channels 6
route_policy duplicate
}
Then, change the output plugin in xmms to the alsa plugin (press CTRL-P), and then click configure. Set the output device to "duplicate".
If you also want software mixing in xine, set the alsa_surround51_device in the xine configuration to "dmix51".
With this setting, for all applications that use the default output get outpont on front left and front right speakers. All that have 5.1 sound should use the dmix51 device.
Bookmarks