PDA

View Full Version : ALSA - route TS2 to surround channel, and all other to PCM


damirs
30-01-2007, 18:53
Hi!

I wonder if I could change .asoundrc and get something like this:

- TeamSpeak2 goes to surround chanel of my soundcard
- All other (music etc.) goes to standard PCM output
- Mic input stays free.

In other words, I would like to have something like surround 4.0 where front speakers will play music and other sounds, and rear speakers (headphones) will reproduce TeamSpeak2 speech. The key is playing with bindings, but problem (for me) is how to resolve what is TeamSpeak speech, and what isn't. If somebody has an idea, please spit it out ;-)


P.S: TeamSpeak2 works if I have .asoundrc like here (http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Sound):

pcm.card0 {
type hw
card 0
mmap_emulation true
}

pcm.!playback {
type dmix # dmix plugin for mixing the output
ipc_key 1234 # an uniqe number
slave {
pcm "card0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}

pcm.!capture {
type dsnoop # dsnoop plugin for input
ipc_key 5678 # another uniqe number
slave {
pcm "card0"
period_time 0
period_size 1024
rate 44100
}
}

# # combined playback/capture device #
pcm.!duplex {
type asym
playback.pcm "playback"
capture.pcm "capture"
}

# # making the playback/capture device default #
pcm.!default {
type plug
slave.pcm "duplex"
}

# # for oss compatibility (maybe) #
pcm.!dsp {
type plug
slave.pcm "duplex"
}

ctl.!mixer0 {
type hw
card 0
}