summaryrefslogtreecommitdiff
path: root/asound.conf
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2004-06-02 23:25:55 +0000
committerJonas Smedegaard <dr@jones.dk>2004-06-02 23:25:55 +0000
commitf8e45d09c6ee15fd79623f15238ef3864b9d8ea2 (patch)
tree44fbd16027589cdd1ce524bd1a442ecdd4f3f3cc /asound.conf
parent0c63c90858a4bc15b37b5cc5e46fce17396fb6e0 (diff)
Add ALSA config for simultaneous use of default device from both esound (esd) and other daemons.
Diffstat (limited to 'asound.conf')
-rw-r--r--asound.conf32
1 files changed, 32 insertions, 0 deletions
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
+}