I know that there are already a lot of documents out, but none of these really helped me. If you want to run Teamspeak and Quake3 or other things at the same time you need “Alsasharing” for some people it’s as simple as just using aoss or a soundserver. For others like me it’s more problematic. Starting Teamspeak normally works – Microphone and Speakers are working. If i start then the game – I don’t have sound ingame. If i start Teamspeak with aoss, it’s the same. What happened? Well: Teamspeak was using the microphone and the speakers and thus blocked the sound device for other applications.
So i followed the Howto here: AlsaSharing.
Starting Teamspeak was funny – The Sound was played very fast and transformed (it sounds like a mouse on crack, not that i ever heard such a mouse but i think most know what i mean) and microphone wasn’t working. This was because of:
period_time 80000
buffer_time 320000
period_size 4096
buffer_size 16384
Anyway. I changed that to:
period_time 0
buffer_time 0
period_size 1024
buffer_size 8192
And sound was working fine. Still no microphone. It seems that using pcm.dsnoop0 is just not working here. Instead of that i used:
pcm.asym0 {
type asym
playback.pcm "dmix0"
#capture.pcm "dsnoop0"
capture.pcm "hw:0,0"
}
Also the “pasym0″ thingy is imho not really needed. You can directly access “asym0″ – it’s doing the same. So i came finally up with the following config, which works fine if you start Teamspeak first and Quake3 afterwards:
pcm.dmix0 {
type dmix
ipc_key 673138
ipc_key_add_uid false # let multiple users share
#ipc_perm 0666 # IPC permissions for multi-user sharing (octal, default 0600)
slave {
pcm "hw:0,0"
rate 48000
period_time 0
buffer_time 0
period_size 1024
buffer_size 8192
}
bindings {
0 0
1 1
}
}
pcm.asym0 {
type asym
playback.pcm "dmix0"
#capture.pcm "dsnoop0"
capture.pcm "hw:0,0"
}
# 'dsp0' is espected by OSS emulation etc.
pcm.dsp0 {
type plug
slave.pcm "asym0"
}
ctl.dsp0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "asym0"
}
ctl.!default {
type hw
card 0
}
There is ofcourse now no microphone sharing (two apps can’t use the microphone twice, thats why you have to start Teamspeak first to make sure that nothing is blocking the microphone except Teamspeak. Start TeamSpeak using “aoss” and Quake3 normally (without aoss).
