From f8e45d09c6ee15fd79623f15238ef3864b9d8ea2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 2 Jun 2004 23:25:55 +0000 Subject: Add ALSA config for simultaneous use of default device from both esound (esd) and other daemons. --- asound.conf | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 asound.conf (limited to 'asound.conf') diff --git a/asound.conf b/asound.conf new file mode 100644 index 0000000..907cdf5 --- /dev/null +++ b/asound.conf @@ -0,0 +1,32 @@ +# This was found here: +# http://alsa.opensrc.org/index.php?page=Dmix+Kde+-+arts%2C+ESD+and+SDL+quick+and+dirty+HOWTO + +pcm.ossmix { + type dmix + ipc_key 1027 # must be unique! + slave { + pcm "hw:0,0" # you cannot use a "plug" device here, darn. + period_time 0 + period_size 1024 + buffer_size 4096 + #format "S32_LE" + #periods 128 # dito. + rate 44100 # with rate 8000 you *will* hear, if ossmix is used :) + } + + bindings { + 0 0 # from 0 => to 0 + 1 1 # from 1 => to 1 + } +} + +pcm.!default { + type plug + slave.pcm "ossmix" +} + +# mixer0 like above +ctl.mixer0 { + type hw + card 0 +} -- cgit v1.2.3