Help - Search - Members - Calendar
Full Version: Fun with ALSA and .asoundrc
Skype Community > English > Development, Betas and Skype Garage > Archive > Skype for Linux 1.4 Alpha
screwtop
Now that Skype uses ALSA for its sound I/O, I can set it up to work properly with my multi-channel audio interface (an Echo Gina24 with an 8-channel ADAT interface chained onto it). Since Skype calls seem to be mono, it's useful to duplicate the sound from the other party across both speakers (or more, if you have a multi-channel surround sound system). Here's the relevant part of my .asoundrc file:

CODE
pcm.skype_playback {
    type route
    slave.pcm gina24_analog
    slave.channels 2
    # Send Skype channel 0 to the L and R speakers at full volume
    ttable.0.0    1
    ttable.0.1    1
}


I then select skype_playback as the playback device in the Sound Devices settings.

I also configured a virtual capture device that mixes all 8 inputs together, so I can talk and play guitar and keyboard all through the one Skype connection. I suspect latency will prevent on-line jams from working very well, though! Quoting from ~/.asoundrc again:

CODE
pcm.skype_capture {
    type route
    slave.pcm gina24_digital
    slave.channels 8
    # Mix all input channels to Skype capture channel 0 at full volume:
    ttable.0.0    1
    ttable.0.1    1
    ttable.0.2    1
    ttable.0.3    1
    ttable.0.4    1
    ttable.0.5    1
    ttable.0.6    1
    ttable.0.7    1
}


It probably isn't necessary to do this on consumer sound cards, which IIRC usually have a "mix" capture device that does the same thing.

Cheers,
screwtop
bege
Thanks.
I had the issue of sound on the left channel only and this worked fine for me

All I had to do was to add the following lines to my /etc/asound.conf file

CODE


pcm.laptopcard {
    type hw card 0 device 0
}

pcm.skype {
    type route
    slave.pcm laptopcard
    slave.channels 2
    # Send Skype channel 0 to the L and R speakers at full volume
    ttable.0.0    1
    ttable.0.1    1
}


and choose "skype" as my output device in the skype gui options panel.

Bruno
jaegermeister
Hi Bege,

considering you're so comfortable with .asoundrc configuration.... here's a question I'd like to put you: say I have on my machine two soundcards, hw0 (soundblaster live) and hw1 (via 8237)... on hw0 there are headphones, while on hw1 my multichannel apparate.

Say that, for some reasons, I'd like to use both soundcards at the same time, creating a special device that pilots them all at the same time (e.g. using skype for a room conference where people can hear from loudspeakers but I still can use headphones).

The question is.... how would you define such new special device in .asoundrc????

Thanks a lot 4 ur attention!!!!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.