[vlc-devel] commit: Add a small help text to the alsa access. (Antoine Cellerier )

git version control git at videolan.org
Tue Dec 29 00:21:29 CET 2009


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Dec 29 00:18:26 2009 +0100| [6224f35b42e886e20cb40af3d95a0a72c6addc24] | committer: Antoine Cellerier 

Add a small help text to the alsa access.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6224f35b42e886e20cb40af3d95a0a72c6addc24
---

 modules/access/alsa.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/access/alsa.c b/modules/access/alsa.c
index b37b380..3688790 100644
--- a/modules/access/alsa.c
+++ b/modules/access/alsa.c
@@ -79,6 +79,11 @@ static void DemuxClose( vlc_object_t * );
     "Caching value for Alsa captures. This " \
     "value should be set in milliseconds." )
 
+#define HELP_TEXT N_( \
+    "Use alsa:// to open the default audio input. If multiple audio " \
+    "inputs are available, they will be listed in the vlc debug output. " \
+    "To select hw:0,1 , use alsa://hw:0,1 ." )
+
 #define ALSA_DEFAULT "hw"
 #define CFG_PREFIX "alsa-"
 
@@ -87,6 +92,7 @@ vlc_module_begin()
     set_description( N_("Alsa audio capture input") )
     set_category( CAT_INPUT )
     set_subcategory( SUBCAT_INPUT_ACCESS )
+    set_help( HELP_TEXT )
 
     add_shortcut( "alsa" )
     set_capability( "access_demux", 10 )




More information about the vlc-devel mailing list