# .asoundrc to use skype at the same time as other audio apps like xmms # # Successfully tested on an IBM x40 with i810_audio using Linux 2.6.15 and # Debian unstable with skype 1.2.0.18-API. No sound daemons (asound, esd, etc.) # running. However, YMMV. # # For background, see: # # https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1228 # https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1224 # # Usage: # 1. cp .asoundrc ~ #(DM)# 1. = Copy once this file into ~ as ~/.asoundrc # 2. ALSA_OSS_PCM_DEVICE="skype" aoss /path/to/skype #(DM)# 2. = Use this command to launch skype #(DM)# Skype launches much faster with option --disable-dbus, thus #(DM)# ALSA_OSS_PCM_DEVICE="skype" aoss skype --disable-dbus #(DM)# http://www.meeus-d.be # # (C) 2006-06-03 Lorenzo Colitti - http://www.colitti.com/lorenzo/ # Licensed under the GPLv2 or later pcm.skype { type asym playback.pcm "skypeout" capture.pcm "skypein" } pcm.skypein { # Convert from 8-bit unsigned mono (default format set by aoss when # /dev/dsp is opened) to 16-bit signed stereo (expected by dsnoop) # # We can't just use a "plug" plugin because although the open will # succeed, the buffer sizes will be wrong and we'll hear no sound at # all. type route slave { pcm "skypedsnoop" format S16_LE } ttable { 0 {0 0.5} 1 {0 0.5} } } pcm.skypeout { # Just pass this on to the system dmix type plug slave { pcm "dmix" } } pcm.skypedsnoop { type dsnoop ipc_key 1133 slave { # "Magic" buffer values to get skype audio to work # If these are not set, opening /dev/dsp succeeds but no sound # will be heard. According to the alsa developers this is due # to skype abusing the OSS API. pcm "hw:0,0" period_size 256 periods 16 buffer_size 16384 } bindings { 0 0 } }