# for OSS emulation to use the dmix plugin # ALSA applications can just use it with device "plug:dmix" # but we set the ALSA default anyways # according to http://alsa.opensrc.org/index.php?page=DmixPlugin, dmix should # be enabled by default starting with ALSA 1.0.9 (at least for soundcards # without HW mixing support) # some of the following has been taken from # http://www.novell.com/coolsolutions/feature/16675.html # but the real solution is from http://gentoo-wiki.com/HOWTO_Skype # Aliases pcm.intel8x0 { type hw card 0 } ctl.intel8x0 { type hw card 0 } # Output stuff pcm.dmixed { type dmix ipc_key 1024 ipc_key_add_uid yes slave { pcm "intel8x0" period_time 0 period_size 512 # 16384 if it stutters when running CPU intensive tasks buffer_size 8192 rate 44100 } bindings { 0 0 1 1 } } # Input stuff pcm.dsnooped { type dsnoop ipc_key 1027 ipc_key_add_uid yes slave { pcm "intel8x0" period_time 0 period_size 256 buffer_size 4096 rate 44100 } bindings { 0 0 1 1 } } # Full-duplex stuff pcm.asymed { type asym playback.pcm "dmixed" capture.pcm "dsnooped" } ctl.asymed { type hw card 0 } # Default ALSA device stuff pcm.!default { type plug slave.pcm "asymed" } # OSS (aoss) stuff pcm.dsp0 { type plug slave.pcm "asymed" } ctl.mixer0 { type hw card 0 }