summaryrefslogtreecommitdiff
path: root/packages/openmoko-base/openmoko-sound-system/session
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-07-04 10:35:39 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-07-04 10:35:39 +0000
commitdbcb36d8e4e156f4ec64444077b776bcd69f2259 (patch)
tree62be86157fc983199ded32890b9d86098305f5b4 /packages/openmoko-base/openmoko-sound-system/session
parentc135979b41af99c0ab5c76e26a9652d5e8ed6858 (diff)
openmoko-base: merge w/ openmoko svn overlay
Diffstat (limited to 'packages/openmoko-base/openmoko-sound-system/session')
-rw-r--r--packages/openmoko-base/openmoko-sound-system/session26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/openmoko-base/openmoko-sound-system/session b/packages/openmoko-base/openmoko-sound-system/session
new file mode 100644
index 0000000000..91267b672a
--- /dev/null
+++ b/packages/openmoko-base/openmoko-sound-system/session
@@ -0,0 +1,26 @@
+#!/usr/bin/pulseaudio -nF
+
+# Create autoload entries for the device drivers
+add-autoload-sink output module-alsa-sink fragment_size=2048 sink_name=output
+add-autoload-source input module-alsa-source source_name=input
+
+# Load several protocols
+load-module module-esound-protocol-unix
+load-module module-simple-protocol-tcp
+load-module module-native-protocol-unix
+load-module module-cli-protocol-unix
+
+# Make some devices default
+set-default-sink output
+set-default-source input
+
+# Don't fail if the audio files referred to below don't exist
+.nofail
+
+# Load an audio to the sample cache for usage with module-x11-bell
+load-sample-lazy x11-bell /usr/share/openmoko/sounds/notify_doorbell.wav
+load-module module-x11-bell sample=x11-bell
+
+# Load samples
+load-sample startup /usr/share/openmoko/sounds/startup_openmoko.wav
+load-sample touchscreen /usr/share/openmoko/sounds/touchscreen_click.wav