MHSpot.com
SipToSis TM - ALSA sndShare Setup
STS Home FAQ ATA Setup Skype Trunk Setup Troubleshooting Forum Downloads Skype Deals

This page describes how to setup the ALSA sndShare configuration.

Make a .asoundrc file in the users home folder with the following content:
Note: Rename your existing .asoundrc if you have one.

#START of .asoundrc	

#AlSA sound device sharing setup
#Name this file .asoundrc in the home root folder of the user running everything
#Change hw:0,0 to your soundcard device (3 places)
#Change rate to 44100 or 48000 (2 places) - select rate that uses the least cpu
#Set all sound devices to sndShare

#following is optional to make this setup the default
#pcm.!default {
#        type plug
#        slave.pcm "sndShare"
#}
		
pcm.sndShare {
  type plug
  slave.pcm "skypeSound"
  slave.channels 2
  #following mutes sound
  ttable.0.0 0
  ttable.1.1 0
}


pcm.skypeSound {
         type asym
         playback.pcm "dmix"
         capture.pcm "dsnoop"
 }
		
pcm.!dmix {
	type dmix
	ipc_key 1024
	ipc_key_add_uid yes
	slave {
	    pcm "hw:0,0"
	    period_time 0
	    period_size 512
	    buffer_size 16384
	    #use rate that uses lowest cpu 
	    rate 44100
	    #rate 48000
	}
	bindings {
	    0 0
	    1 1
	  }
}
		
# dsnoop to share the microphone input
pcm.!dsnoop {
         type dsnoop
         ipc_key 2048
         ipc_key_add_uid yes
         slave {
                 pcm "hw:0,0"
                 period_time 0
                 period_size 512
                 buffer_size 2048
                 format S16_LE
            #use rate that uses least cpu
            rate 44100
            #rate 48000
         }
 } 


ctl.skypeSound {
  type hw
  card 0 
  device 0 
}

#END of .asoundrc	
Change hw:0,0 to your soundcard device if different (3 places)
Start each skype client and set all sound devices to sndShare.
Make cpu usage tests and set rate to 44100 or 48000 (2 places) - select the rate that uses the least cpu.
Failure to select the right rate can use 2 to 3 times the cpu over the right rate. You can also try no rate.
View the skype sound setup screen