summaryrefslogtreecommitdiffstats
path: root/polyp/polypaudio.pa
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-05 19:53:57 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-05 19:53:57 +0000
commit964bdfd1e8255b57e9d22cd22b3784e2fc79b905 (patch)
tree11676e2930adb42af6ac00e721c4b2a73baf35ef /polyp/polypaudio.pa
parent839f99ffbf5b01e585845a061830a6fa5f0743dc (diff)
add initial glib mainloop adapter
clean up mainloop API git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@105 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polypaudio.pa')
-rwxr-xr-xpolyp/polypaudio.pa30
1 files changed, 19 insertions, 11 deletions
diff --git a/polyp/polypaudio.pa b/polyp/polypaudio.pa
index 0989a78d..71513565 100755
--- a/polyp/polypaudio.pa
+++ b/polyp/polypaudio.pa
@@ -18,33 +18,41 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-# Load audio drivers
+# Load audio drivers statically
+
#load module-alsa-sink
#load module-alsa-source device=plughw:1,0
-#load module-oss device="/dev/dsp"
+#load module-oss device="/dev/dsp" sink_name=output source_name=input
#load module-oss-mmap device="/dev/dsp"
+# Load audio drivers automatically on access
+
+#autoload_sink_add output module-oss device="/dev/dsp" sink_name=output source_name=input
+#autoload_source_add input module-oss device="/dev/dsp" sink_name=output source_name=input
+autoload_sink_add output module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
+autoload_source_add input module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
+#autoload_sink_add output module-alsa-sink sink_name=output
+#autoload_source_add input module-alsa-source source_name=input
+
# Load several protocols
load module-esound-protocol-tcp
load module-simple-protocol-tcp
load module-native-protocol-unix
load module-cli-protocol-unix
-# Load X11 bell module
-load module-x11-bell
-
# Load the CLI module
load module-cli
-autoload_sink_add oss_output module-oss device="/dev/dsp" sink_name=oss_output source_name=oss_input
-autoload_source_add oss_input module-oss device="/dev/dsp" sink_name=oss_output source_name=oss_input
-
# Make some devices default
-sink_default oss_output
-source_default oss_input
+sink_default output
+source_default input
.nofail
# Load something to the sample cache
scache_load /usr/share/sounds/KDE_Notify.wav x11-bell
-scache_play x11-bell oss_output
+scache_play x11-bell output
+
+# Load X11 bell module
+load module-x11-bell sample=x11-bell sink=output
+