pcm.swmixer {
type dmix
ipc_key 12345 # any unique number here
slave {
pcm "hw:0,0"
period_time 0
buffer_time 0
period_size 2048 # jm: much smoother than 1024/8192!
buffer_size 32768
rate 48000
}
bindings {
0 0 # from 0 => to 0
1 1 # from 1 => to 1
}
}
pcm.dsp0 {
type plug
slave.pcm "swmixer"
}
# this makes native ALSA apps default to using dmix
pcm.!default {
type plug
slave.pcm "swmixer"
}
ctl.dsp0 {
type hw
card 0
}
ctl.!default {
type hw
card 0
}