To get multiple apps to be able to output sound at the same time, which in my opinion is an absolute essential for a modern OS you can use a sound server like esd or arts. But those are horrid resource hogs, not to mention the fact that they can introduce huge amounts of lag. So the best option is to get alsa to do the mixing by creating a file called .asoundrc in your home and pasting the following in
type dmix
ipc_key 1024
slave {
pcm "hw:0,1"
period_time 0
period_size 1024
buffer_size 4096
#rate 48000
}
bindings {
0 0
1 1
}
}
# Everything shall be dmixed, so redefine "default":
pcm.!default {
type plug
slave.pcm "dmixer"
}
# OSS via aoss should d(mix)stroyed:
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
ctl.mixer0 {
type hw
card 0
}
If you insist on trying to understand stuff and not just slavishly copying what you find on some random website then look here http://alsa.opensrc.org/index.php?page=DmixPlugin.
Once you have it setup your OSS apps should JustWork(tm), the ALSA apps may need to be pointed at the device. For mplayer for example you can use “ao=alsa:device=dmixer” in the config file.
Related Posts
No related posts.

![[Google]]( http://blog.trollgod.org.uk/wp-content/plugins/easy-adsenser/google-light.gif)
