From 8c756d55da58779388cb07a2e135ba3f8ef3988c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 20 Aug 2004 13:06:55 +0000 Subject: documentation update git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@146 fefdeb5f-60dc-0310-8127-8f9354f1896f --- doc/cli.html.in | 65 ++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 55 insertions(+), 10 deletions(-) (limited to 'doc/cli.html.in') diff --git a/doc/cli.html.in b/doc/cli.html.in index c67d78db..01c04cc9 100644 --- a/doc/cli.html.in +++ b/doc/cli.html.in @@ -87,7 +87,45 @@ input list. The same volume rules apply as with sink_volume.

(resp. ssource) by its index in the sink (resp. source) list or by its name.

-

Killing clients/streams

+

Sample Cache

+ +

scache_list

+ +

Lists the contents of the sample cache.

+ +

scache_play

+ +

Play a sample cache entry to a sink. Expects the sample name and the sink name as arguments.

+ +

sache_remove

+ +

Remove an entry from the sample cache. Expects the sample name as argument.

+ +

sache_load

+ +

Load an audio file to the sample cache. Expects the file name to load and the desired sample name as arguments.

+ +

Module Autoloading

+ +

autoload_list

+ +

Lists all currently defined autoloading entries.

+ +

autoload_sink_add/autoload_source_add

+ +

Adds an autoloading entry for a sink (resp. source). Expects the sink name (resp. source name), the module name and the module arguments as arguments.

+ +

autoload_sink_remove/autoload_source_remove

+ +

Remove an autoloading entry. Expects the sink name (resp. source name) as argument.

+ +

Miscellaneous Commands

+ +

play_file

+ +

Play an audio file to a sink. Expects the file name and the sink name as argumens.

+ +

Killing Clients/Streams

kill_client

@@ -120,12 +158,14 @@ on the interactive command line.

Example Configuration Script

+

Mark the following script as executable (chmod +x) and run it for a sensible polypaudio configuration.

+
 #!/usr/bin/polaudio -F
 
-# Load audio drivers
-load module-alsa-sink device=plughw:0,0 rate=48000
-load module-alsa-source device=hw:1,0
+# Create autoload entries for the device drivers
+autoload_sink_add output module-alsa-sink device=plughw:0,0 rate=48000 sink_name=output
+autoload_source_add input load module-alsa-source device=hw:1,0 source_name=input
 
 # Load several protocols
 load module-esound-protocol-tcp
@@ -136,17 +176,22 @@ load module-cli-protocol-unix
 # Load the CLI module (This is similar to passing "-C" on the command line of polypaudio)
 load module-cli
 
+# Make some devices default
+sink_default output
+source_default input
+
+# Don't fail if the audio files referred to below don't exist
 .nofail
 
-# Make some devices default
-sink_default alsa_output
-source_default alsa_input
+# Load an audio to the sample cache for usage with module-x11-bell
+scache_load /usr/share/sounds/KDE_Notify.wav x11-bell
+load module-x11-bell
 
-# Use digital amplification
-sink_volume alsa_output 0x200
+# Play a welcome sound
+play_file /usr/share/sounds/startup3.wav output
 

-
Lennart Poettering <@PACKAGE_BUGREPORT@>, July 2004
+
Lennart Poettering <@PACKAGE_BUGREPORT@>, August 2004
$Id$
-- cgit