]> git.sesse.net Git - vlc/commitdiff
* 2nd review of modules/audio* (refs #438)
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 31 Mar 2006 15:15:07 +0000 (15:15 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 31 Mar 2006 15:15:07 +0000 (15:15 +0000)
34 files changed:
modules/audio_filter/channel_mixer/dolby.c
modules/audio_filter/channel_mixer/headphone.c
modules/audio_filter/channel_mixer/simple.c
modules/audio_filter/channel_mixer/trivial.c
modules/audio_filter/converter/a52tospdif.c
modules/audio_filter/converter/dtstofloat32.c
modules/audio_filter/converter/dtstospdif.c
modules/audio_filter/converter/fixed32tofloat32.c
modules/audio_filter/converter/fixed32tos16.c
modules/audio_filter/converter/float32tos16.c
modules/audio_filter/converter/float32tos8.c
modules/audio_filter/converter/float32tou16.c
modules/audio_filter/converter/float32tou8.c
modules/audio_filter/converter/s16tofixed32.c
modules/audio_filter/converter/s16tofloat32.c
modules/audio_filter/converter/s16tofloat32swab.c
modules/audio_filter/converter/s8tofloat32.c
modules/audio_filter/converter/u8tofixed32.c
modules/audio_filter/converter/u8tofloat32.c
modules/audio_filter/equalizer.c
modules/audio_filter/format.c
modules/audio_filter/normvol.c
modules/audio_filter/param_eq.c
modules/audio_filter/resampler/bandlimited.c
modules/audio_filter/resampler/linear.c
modules/audio_filter/resampler/trivial.c
modules/audio_filter/resampler/ugly.c
modules/audio_output/alsa.c
modules/audio_output/auhal.c
modules/audio_output/directx.c
modules/audio_output/file.c
modules/audio_output/jack.c
modules/audio_output/oss.c
modules/audio_output/portaudio.c

index 705505a9954043f5be2e4869d71f6adb4cbfa17c..aa0e083838cbe7ad83bd398fccc81c3dd0329bc0 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * dolby.c : simple decoder for dolby surround encoded streams
  *****************************************************************************
- * Copyright (C) 2005 the VideoLAN team
+ * Copyright (C) 2005, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Boris Dorès <babal@via.ecp.fr>
@@ -44,8 +44,8 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( N_("Simple decoder for dolby surround encoded streams") );
-    set_shortname( _("Dolby surround decoder") );
+    set_description( N_("Simple decoder for Dolby Surround encoded streams") );
+    set_shortname( _("Dolby Surround decoder") );
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_ACODEC );
     set_capability( "audio filter", 5 );
@@ -105,7 +105,7 @@ static int Create( vlc_object_t *p_this )
     p_filter->p_sys = malloc( sizeof(struct aout_filter_sys_t) );
     if ( p_filter->p_sys == NULL )
     {
-        msg_Err( p_filter, "Out of memory" );
+        msg_Err( p_filter, "out of memory" );
         return VLC_EGENERIC;
     }
     p_filter->p_sys->i_left = -1;
index 9a1ee62c7aa419b308bf11b6ff1cf805b6d341e9..150035fa39b78f772f3a718b1ddd7606b9e3cc7f 100644 (file)
@@ -2,7 +2,7 @@
  * headphone.c : headphone virtual spatialization channel mixer module
  *               -> gives the feeling of a real room with a simple headphone
  *****************************************************************************
- * Copyright (C) 2002-2005 the VideoLAN team
+ * Copyright (C) 2002-2006 the VideoLAN team
  * $Id$
  *
  * Authors: Boris Dorès <babal@via.ecp.fr>
@@ -60,8 +60,8 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 #define HEADPHONE_COMPENSATE_TEXT N_("Compensate delay")
 #define HEADPHONE_COMPENSATE_LONGTEXT N_( \
      "The delay which is introduced by the physical algorithm may "\
-     "sometimes be disturbing for the lipsync. In that case, turn "\
-     "this on to compensate.")
+     "sometimes be disturbing for the synchronization between lips-movement "\
+     "and speech. In case, turn this on to compensate.")
 
 #define HEADPHONE_DOLBY_TEXT N_("No decoding of Dolby Surround")
 #define HEADPHONE_DOLBY_LONGTEXT N_( \
@@ -344,7 +344,7 @@ static int Create( vlc_object_t *p_this )
     if ( p_filter->output.i_physical_channels
             != (AOUT_CHAN_LEFT|AOUT_CHAN_RIGHT) )
     {
-        msg_Dbg( p_filter, "Filter discarded (incompatible format)" );
+        msg_Dbg( p_filter, "filter discarded (incompatible format)" );
         return VLC_EGENERIC;
     }
 
@@ -380,7 +380,7 @@ static int Create( vlc_object_t *p_this )
     }
     if ( ! b_fit )
     {
-        msg_Dbg( p_filter, "Requesting specific format" );
+        msg_Dbg( p_filter, "requesting specific format" );
         return VLC_EGENERIC;
     }
 
@@ -388,7 +388,7 @@ static int Create( vlc_object_t *p_this )
     p_filter->p_sys = malloc( sizeof(struct aout_filter_sys_t) );
     if ( p_filter->p_sys == NULL )
     {
-        msg_Err( p_filter, "Out of memory" );
+        msg_Err( p_filter, "out of memory" );
         return VLC_EGENERIC;
     }
     p_filter->p_sys->i_overflow_buffer_size = 0;
@@ -446,8 +446,8 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
     byte_t * p_overflow;
     byte_t * p_slide;
 
-    size_t i_overflow_size;/* in bytes */
-    size_t i_out_size;/* in bytes */
+    size_t i_overflow_size;     /* in bytes */
+    size_t i_out_size;          /* in bytes */
 
     unsigned int i, j;
 
index 886f1f5c1f32728099f2899277ac4a4a4978f18a..8cbd3d2e714c448c8dadf821de31d5d8cb8d2517 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * simple.c : simple channel mixer plug-in (only 7/7.1/5/5.1 -> Stereo for now)
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@videolan.org>
@@ -43,7 +43,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("audio filter for simple channel mixing") );
+    set_description( _("Audio filter for simple channel mixing") );
     set_capability( "audio filter", 10 );
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
index e98fa86148fb5201094a1868887df2d320d9c18e..cd3988099aa29fdddfb7964554106b8328668665 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * trivial.c : trivial channel mixer plug-in (drops unwanted channels)
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
@@ -43,7 +43,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("audio filter for trivial channel mixing") );
+    set_description( _("Audio filter for trivial channel mixing") );
     set_capability( "audio filter", 1 );
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
index bc21a10dcfee23096b7a9d3786bb53d588d02a0d..3bc2392c8821286ff2afca8ca11a3b73c290ae01 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * a52tospdif.c : encapsulates A/52 frames into S/PDIF packets
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
@@ -50,7 +50,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for A/52->S/PDIF encapsulation") );
+    set_description( _("Audio filter for A/52->S/PDIF encapsulation") );
     set_capability( "audio filter", 10 );
     set_callbacks( Create, NULL );
 vlc_module_end();
@@ -82,8 +82,8 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
                     aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf )
 {
     /* AC3 is natively big endian. Most SPDIF devices have the native
-     * endianness of the computersystem.
-     * On MAc OS X however, little endian devices are also common.
+     * endianness of the computer system.
+     * On Mac OS X however, little endian devices are also common.
      */
     static const uint8_t p_sync_le[6] = { 0x72, 0xF8, 0x1F, 0x4E, 0x01, 0x00 };
     static const uint8_t p_sync_be[6] = { 0xF8, 0x72, 0x4E, 0x1F, 0x00, 0x01 };
index 0ebbffc70cafa3c808af09b9493efa0fafbec2ea..3377e64dd65e4eb90fb9c8238adab0a68bc5568e 100644 (file)
@@ -1,9 +1,9 @@
 /*****************************************************************************
  * dtstofloat32.c: DTS Coherent Acoustics decoder plugin for VLC.
- *   This plugin makes use of libdts to do the actual decoding
- *   (http://www.videolan.org/dtsdec/).
+ *   This plugin makes use of libdca to do the actual decoding
+ *   (http://developers.videolan.org/libdca.html).
  *****************************************************************************
- * Copyright (C) 2001, 2002 the VideoLAN team
+ * Copyright (C) 2001, 2002libdca the VideoLAN team
  * $Id$
  *
  * Author: Gildas Bazin <gbazin@videolan.org>
@@ -31,7 +31,7 @@
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <string.h>                                              /* strdup() */
 
-#include <dts.h>                                       /* libdts header file */
+#include <dts.h>                                       /* libdca header file */
 
 #include <vlc/decoder.h>
 #include "aout_internal.h"
@@ -52,7 +52,7 @@ static int  OpenFilter ( vlc_object_t * );
 static void CloseFilter( vlc_object_t * );
 static block_t *Convert( filter_t *, block_t * );
 
-/* libdts channel order */
+/* libdca channel order */
 static const uint32_t pi_channels_in[] =
 { AOUT_CHAN_CENTER, AOUT_CHAN_LEFT, AOUT_CHAN_RIGHT,
   AOUT_CHAN_REARLEFT, AOUT_CHAN_REARRIGHT, AOUT_CHAN_LFE, 0 };
@@ -66,9 +66,9 @@ static const uint32_t pi_channels_out[] =
  *****************************************************************************/
 struct filter_sys_t
 {
-    dts_state_t * p_libdts; /* libdts internal structure */
+    dts_state_t * p_libdts; /* libdca internal structure */
     vlc_bool_t b_dynrng; /* see below */
-    int i_flags; /* libdts flags, see dtsdec/doc/libdts.txt */
+    int i_flags; /* libdca flags, see dtsdec/doc/libdts.txt */
     vlc_bool_t b_dontwarn;
     int i_nb_channels; /* number of float32 per sample */
 
@@ -89,7 +89,7 @@ struct filter_sys_t
 vlc_module_begin();
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_ACODEC );
-    set_shortname( _("DTS" ) );
+    set_shortname( _("DCA" ) );
     set_description( _("DTS Coherent Acoustics audio decoder") );
     add_bool( "dts-dynrng", 1, NULL, DYNRNG_TEXT, DYNRNG_LONGTEXT, VLC_FALSE );
     set_capability( "audio filter", 100 );
@@ -215,11 +215,11 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
     }
     //p_sys->i_flags |= DTS_ADJUST_LEVEL;
 
-    /* Initialize libdts */
+    /* Initialize libdca */
     p_sys->p_libdts = dts_init( 0 );
     if( p_sys->p_libdts == NULL )
     {
-        msg_Err( p_this, "unable to initialize libdts" );
+        msg_Err( p_this, "unable to initialize libdca" );
         return VLC_EGENERIC;
     }
 
@@ -303,7 +303,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
     if( !dts_syncinfo( p_sys->p_libdts, p_in_buf->p_buffer, &i_flags,
                        &i_sample_rate, &i_bit_rate, &i_frame_length ) )
     {
-        msg_Warn( p_aout, "libdts couldn't sync on frame" );
+        msg_Warn( p_aout, "libdca couldn't sync on frame" );
         p_out_buf->i_nb_samples = p_out_buf->i_nb_bytes = 0;
         return;
     }
@@ -316,7 +316,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
           && !p_sys->b_dontwarn )
     {
         msg_Warn( p_aout,
-                  "libdts couldn't do the requested downmix 0x%x->0x%x",
+                  "libdca couldn't do the requested downmix 0x%x->0x%x",
                   p_sys->i_flags  & DTS_CHANNEL_MASK,
                   i_flags & DTS_CHANNEL_MASK );
 
index b2d71ddd0fac49dfc4ad642796d635df2162aad4..badd22896574d08eb58b86d33043b17788dd04a7 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * dtstospdif.c : encapsulates DTS frames into S/PDIF packets
  *****************************************************************************
- * Copyright (C) 2003 the VideoLAN team
+ * Copyright (C) 2003, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
@@ -67,7 +67,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for DTS->S/PDIF encapsulation") );
+    set_description( _("Audio filter for DTS->S/PDIF encapsulation") );
     set_capability( "audio filter", 10 );
     set_callbacks( Create, Close );
 vlc_module_end();
index fcb0ed6f0d04cfff15ac64674bc9fed7ceb1fe1f..e16f1215eea0d904a26e66950c7ea66e4feb23c5 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
- * fixed32float32.c : converter from fixed32 to float32 bits integer
+ * fixed32float32.c: converter from fixed32 to float32 bits integer
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Jean-Paul Saman <jpsaman _at_ videolan _dot_ org>
@@ -47,7 +47,7 @@ static void FloatToFixed ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for fixed32<->float32 conversion") );
+    set_description( _("Audio filter for fixed32<->float32 conversion") );
     set_capability( "audio filter", 10 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index cb78364f5aee4fea589d017cd098406347ca7ed8..b4f03656f493fabd64a024a44e01680c6b6c5861 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * fixed32tos16.c : converter from fixed32 to signed 16 bits integer
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Jean-Paul Saman <jpsaman _at_ videolan _dot_ org>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for fixed32->s16 conversion") );
+    set_description( _("Audio filter for fixed32->s16 conversion") );
     set_capability( "audio filter", 10 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index f7d1bf9ed6df0c4cfa1cd48c86fab0a74c7a524e..8a20913340368864a7480a7be22027d5b9f96ed9 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * float32tos16.c : converter from float32 to signed 16 bits integer
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for float32->s16 conversion") );
+    set_description( _("Audio filter for float32->s16 conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index 6c1ff85e8b0aaf0dcb9a2b20d3044405a16b4aaf..4314650474287ec75628bdb1a5d3992a677dfffe 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * float32tos8.c : converter from float32 to signed 8 bits integer
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Xavier Maillard <zedek@fxgsproject.org>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for float32->s8 conversion") );
+    set_description( _("Audio filter for float32->s8 conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index 4b37310963f45636fbfaa1c8746f161a9876e143..9b8f2942d0a2bdb85f4c1ed2bb9d6b2ef326b1fa 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * float32tou16.c : converter from float32 to unsigned 16 bits integer
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Xavier Maillard <zedek@fxgsproject.org>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for float32->u16 conversion") );
+    set_description( _("Audio filter for float32->u16 conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index 849548a463dc36536e0b80b37568e2e56fdc4346..f2269f41197b45f9ddf1a7d5bad9e86c40ea1da8 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * float32tou8.c : converter from float32 to unsigned 8 bits integer
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Xavier Maillard <zedek@fxgsproject.org>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for float32->u8 conversion") );
+    set_description( _("Audio filter for float32->u8 conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index a75a0c15a4d2a589061687120fa1d1d528b64abf..0ed8994a3fe1fa1453973928bcff7003563ad135 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * s16tofixed32.c : converter from signed 16 bits integer to fixed 32
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Marc Ariberti <marcari@videolan.ord>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for s16->fixed32 conversion") );
+    set_description( _("Audio filter for s16->fixed32 conversion") );
     set_capability( "audio filter", 15 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index 51d7fa04d68c79a670001de19e9a9764ece433cc..2fd45a94a13204b970e5ada8fde5199a62f96767 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * s16tofloat32.c : converter from signed 16 bits integer to float32
  *****************************************************************************
- * Copyright (C) 2002-2005 the VideoLAN team
+ * Copyright (C) 2002-2006 the VideoLAN team
  * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
@@ -47,7 +47,7 @@ static void DoWork24  ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for s16->float32 conversion") );
+    set_description( _("Audio filter for s16->float32 conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index bfa7faf29e7ae6ab237ab5a6bd70c6519f0f4d8e..608d6d2240394498c187a2769865baa5795949b5 100644 (file)
@@ -2,7 +2,7 @@
  * s16tofloat32swab.c : converter from signed 16 bits integer to float32
  *                      with endianness change
  *****************************************************************************
- * Copyright (C) 2002-2005 the VideoLAN team
+ * Copyright (C) 2002-2006 the VideoLAN team
  * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
@@ -59,7 +59,7 @@ vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
     set_description(
-            _("audio filter for s16->float32 with endianness conversion") );
+            _("Audio filter for s16->float32 with endianness conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index baefc6c09fca52da851d6c2504143e723d4a774e..a493568cdd0cd8dd33fd06b5fc37c774af31947f 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * s8tofloat32.c : converter from signed 8 bits integer to float32.
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for s8->float32 conversion") );
+    set_description( _("Audio filter for s8->float32 conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index 9691a70935a2550dbe908f09a0daf03084d219c5..efe7bbfa54574164a71f70d0e8177ec0354aa258 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * u8tofixed32.c : converter from unsigned 8 bits integer to fixed32.
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for u8->fixed32 conversion") );
+    set_description( _("Audio filter for u8->fixed32 conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index f5d6c893e4494d4aed43b8fdd51bceb3fa9bd25d..6860d695d432f42d25bbdd5c3c78158c6b5c7301 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * u8tofloat32.c : converter from unsigned 8 bits integer to float32.
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
@@ -45,7 +45,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for u8->float32 conversion") );
+    set_description( _("Audio filter for u8->float32 conversion") );
     set_capability( "audio filter", 1 );
     set_callbacks( Create, NULL );
 vlc_module_end();
index 2fed5cb461d6b4008eb384146aa79fa755982780..39e2d446f21bf1644aacea6130dceef5afb6f381 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * equalizer.c:
  *****************************************************************************
- * Copyright (C) 2004 the VideoLAN team
+ * Copyright (C) 2004, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
@@ -54,19 +54,19 @@ static void Close( vlc_object_t * );
 
 #define BANDS_TEXT N_( "Bands gain")
 #define BANDS_LONGTEXT N_( \
-         "Don't use presets, manually specify bands. You need to provide " \
-         "10 values between -20dB and 20dB, separated by spaces, like " \
-         "\"0 2 4 2 0 -2 -4 -2 0\"" )
+         "Don't use presets, but manually specified bands. You need to " \
+         "provide 10 values between -20dB and 20dB, separated by spaces, " \
+         "e.g. \"0 2 4 2 0 -2 -4 -2 0\"" )
 
 #define TWOPASS_TEXT N_( "Two pass" )
-#define TWOPASS_LONGTEXT N_( "Filter twice the audio. This provides a more"  \
+#define TWOPASS_LONGTEXT N_( "Filter the audio twice. This provides a more "  \
          "intense effect.")
 
 #define PREAMP_TEXT N_("Global gain" )
 #define PREAMP_LONGTEXT N_("Set the global gain in dB (-20 ... 20)." )
 
 vlc_module_begin();
-    set_description( _("Equalizer 10 bands") );
+    set_description( _("Equalizer with 10 bands") );
     set_shortname( N_("Equalizer" ) );
     set_capability( "audio filter", 0 );
     set_category( CAT_AUDIO );
@@ -148,7 +148,7 @@ static int Open( vlc_object_t *p_this )
         b_fit = VLC_FALSE;
         p_filter->input.i_format = VLC_FOURCC('f','l','3','2');
         p_filter->output.i_format = VLC_FOURCC('f','l','3','2');
-        msg_Warn( p_filter, "Bad input or output format" );
+        msg_Warn( p_filter, "bad input or output format" );
     }
     if ( !AOUT_FMTS_SIMILAR( &p_filter->input, &p_filter->output ) )
     {
@@ -291,7 +291,7 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate )
     else
     {
         /* TODO compute the coeffs on the fly */
-        msg_Err( p_filter, "unsupported rate" );
+        msg_Err( p_filter, "rate not supported" );
         return VLC_EGENERIC;
     }
 
index 8f2c3942bc4add37387e5b0850fe079ac9b17c63..dec29f62835ef5879fca00b29cd3936945da88c0 100644 (file)
@@ -198,7 +198,7 @@ static struct
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("audio filter for PCM format conversion") );
+    set_description( _("Audio filter for PCM format conversion") );
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
     set_capability( "audio filter2", 1 );
index 93d86cd0c2e5e085c51d4e97ac0fac1f09814acb..18e9b295a6246710cf202914ee6aba8ce52f2b99 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
- * normvol.c :  volume normalizer
+ * normvol.c: volume normalizer
  *****************************************************************************
- * Copyright (C) 2001 the VideoLAN team
+ * Copyright (C) 2001, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Clément Stenac <zorglub@videolan.org>
@@ -109,7 +109,7 @@ static int Open( vlc_object_t *p_this )
         b_fit = VLC_FALSE;
         p_filter->input.i_format = VLC_FOURCC('f','l','3','2');
         p_filter->output.i_format = VLC_FOURCC('f','l','3','2');
-        msg_Warn( p_filter, "Bad input or output format" );
+        msg_Warn( p_filter, "bad input or output format" );
     }
 
     if ( !AOUT_FMTS_SIMILAR( &p_filter->input, &p_filter->output ) )
index 74e38dea11c44da1cb6d0cfcecd64bfd66c97451..dbd47df704bf8a0fe66283d286c87df4a18a55f4 100644 (file)
@@ -114,7 +114,7 @@ static int Open( vlc_object_t *p_this )
         b_fit = VLC_FALSE;
         p_filter->input.i_format = VLC_FOURCC('f','l','3','2');
         p_filter->output.i_format = VLC_FOURCC('f','l','3','2');
-        msg_Warn( p_filter, "Bad input or output format" );
+        msg_Warn( p_filter, "bad input or output format" );
     }
     if ( !AOUT_FMTS_SIMILAR( &p_filter->input, &p_filter->output ) )
     {
index 4e9fe1846e505279c3294a00ccd151684a9654b3..d092f6b06402d943262837aff76bcbddb38ca97d 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * bandlimited.c : band-limited interpolation resampler
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
@@ -81,7 +81,7 @@ struct aout_filter_sys_t
 vlc_module_begin();
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
-    set_description( _("audio filter for band-limited interpolation resampling") );
+    set_description( _("Audio filter for band-limited interpolation resampling") );
     set_capability( "audio filter", 20 );
     set_callbacks( Create, Close );
 vlc_module_end();
index fef487136bb65bf7fc128bd760ecd139a8c29e7b..94b63d7e917e6c135d76bdfd3d73dbae6c510e04 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * linear.c : linear interpolation resampler
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
@@ -62,14 +62,14 @@ struct filter_sys_t
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("audio filter for linear interpolation resampling") );
+    set_description( _("Audio filter for linear interpolation resampling") );
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
     set_capability( "audio filter", 5 );
     set_callbacks( Create, Close );
 
     add_submodule();
-    set_description( _("audio filter for linear interpolation resampling") );
+    set_description( _("Audio filter for linear interpolation resampling") );
     set_capability( "audio filter2", 5 );
     set_callbacks( OpenFilter, CloseFilter );
 vlc_module_end();
index 3dab92ce898aca7b3afa4b48414f6d1cd9943d52..24eaafbccffa50b720897c90e7ebd9ae89549eeb 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * trivial.c : trivial resampler (skips samples or pads with zeroes)
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
@@ -43,7 +43,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("audio filter for trivial resampling") );
+    set_description( _("Audio filter for trivial resampling") );
     set_capability( "audio filter", 1 );
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
index 5e340211e443845579847c1ba424af9e2ad54f09..43ffc3be755aeef92f080f26edf2d86a998d4844 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * ugly.c : ugly resampler (changes pitch)
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
@@ -43,7 +43,7 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
-    set_description( _("audio filter for ugly resampling") );
+    set_description( _("Audio filter for ugly resampling") );
     set_capability( "audio filter", 2 );
     set_category( CAT_AUDIO );
     set_subcategory( SUBCAT_AUDIO_MISC );
index d471988db3e5d139b87dbe254a6f01eda950acf2..4633a4bc4f97ced11765a949f16047db6d9cd14a 100644 (file)
@@ -201,7 +201,7 @@ static void Probe( aout_instance_t * p_aout,
                     break;
                 case 6:
                     val.i_int = AOUT_VAR_5_1;
-                    text.psz_string = N_("5.1");
+                    text.psz_string = "5.1";
                     var_Change( p_aout, "audio-device",
                                 VLC_VAR_ADDCHOICE, &val, &text );
                     break;
@@ -566,9 +566,9 @@ static int Open( vlc_object_t *p_this )
 #endif
         if( i_snd_rc < 0 || p_aout->output.output.i_rate != i_old_rate )
         {
-            msg_Warn( p_aout, "The rate %d Hz is not supported by your hardware. "
-                  "Using %d Hz instead.\n", i_old_rate,
-                  p_aout->output.output.i_rate );
+            msg_Warn( p_aout, "The rate %d Hz is not supported by your " \
+                "hardware. Using %d Hz instead.\n", i_old_rate, \
+                p_aout->output.output.i_rate );
         }
 
         /* Set buffer size. */
index d049c361cc918acaa358b439be82f61286b647e1..1e272f0f3db11eb2d09054ac1f1ac9978a39c7dd 100644 (file)
@@ -415,7 +415,7 @@ static int OpenAnalog( aout_instance_t *p_aout )
                         p_aout->output.output.i_physical_channels |= AOUT_CHAN_REARCENTER;
                         continue;
                     default:
-                        msg_Warn( p_aout, "Unrecognized channel form provided by driver: %d", (int)layout->mChannelDescriptions[i].mChannelLabel );
+                        msg_Warn( p_aout, "unrecognized channel form provided by driver: %d", (int)layout->mChannelDescriptions[i].mChannelLabel );
                 }
             }
             if( p_aout->output.output.i_physical_channels == 0 )
@@ -637,7 +637,7 @@ static int OpenSPDIF( aout_instance_t * p_aout )
     p_streams = (AudioStreamID *)malloc( i_param_size );
     if( p_streams == NULL )
     {
-        msg_Err( p_aout, "Out of memory" );
+        msg_Err( p_aout, "out of memory" );
         return VLC_FALSE;
     }
     
@@ -1012,7 +1012,7 @@ static void Probe( aout_instance_t * p_aout )
             var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val, &text );
             if( p_sys->i_default_dev == p_devices[i] && config_GetInt( p_aout, "spdif" ) )
             {
-                /* I we selected to prefer SPDIF output if available
+                /* We selected to prefer SPDIF output if available
                  * then this "dummy" entry should be selected */
                 var_Change( p_aout, "audio-device", VLC_VAR_SETDEFAULT, &val, NULL );
                 var_Set( p_aout, "audio-device", val );
@@ -1088,7 +1088,7 @@ static int AudioDeviceSupportsDigital( aout_instance_t *p_aout, AudioDeviceID i_
     p_streams = (AudioStreamID *)malloc( i_param_size );
     if( p_streams == NULL )
     {
-        msg_Err( p_aout, "Out of memory" );
+        msg_Err( p_aout, "out of memory" );
         return VLC_ENOMEM;
     }
     
index 765b30f6e55d49b4d192180fa0790c381ea443e1..177f2c47f98dd7b7b37e545eb2fc216193ac2a60 100644 (file)
@@ -412,7 +412,7 @@ static void Probe( aout_instance_t * p_aout )
             == VLC_SUCCESS )
         {
             val.i_int = AOUT_VAR_5_1;
-            text.psz_string = N_("5.1");
+            text.psz_string = "5.1";
             var_Change( p_aout, "audio-device",
                         VLC_VAR_ADDCHOICE, &val, &text );
             msg_Dbg( p_aout, "device supports 5.1 channels" );
@@ -582,7 +582,7 @@ static void CloseAudio( vlc_object_t *p_this )
     aout_instance_t * p_aout = (aout_instance_t *)p_this;
     aout_sys_t *p_sys = p_aout->output.p_sys;
 
-    msg_Dbg( p_aout, "CloseAudio" );
+    msg_Dbg( p_aout, "closing audio device" );
 
     /* kill the position notification thread, if any */
     if( p_sys->p_notif )
index db1dcf3de1969620c09970f686afe4cbdc410aba..5144d36704857e8d1295b8658473d8ae4794c5fc 100644 (file)
@@ -82,13 +82,13 @@ static void    Play        ( aout_instance_t * );
 #define FORMAT_LONGTEXT N_("One of \"u8\", \"s8\", \"u16\", \"s16\", " \
     "\"u16_le\", \"s16_le\", \"u16_be\", \"s16_be\", \"fixed32\", " \
     "\"float32\" or \"spdif\"")
-#define CHANNELS_TEXT N_("Output channels number")
+#define CHANNELS_TEXT N_("Number of output channels")
 #define CHANNELS_LONGTEXT N_("By default, all the channels of the incoming " \
     "will be saved but you can restrict the number of channels here.")
 
-#define WAV_TEXT N_("Add wave header")
+#define WAV_TEXT N_("Add WAVE header")
 #define WAV_LONGTEXT N_("Instead of writing a raw file, you can add a WAV " \
-                        "header to the file")
+                        "header to the file.")
 
 static char *format_list[] = { "u8", "s8", "u16", "s16", "u16_le", "s16_le",
                                "u16_be", "s16_be", "fixed32", "float32",
@@ -105,7 +105,7 @@ static int format_int[] = { VLC_FOURCC('u','8',' ',' '),
                             VLC_FOURCC('s','p','i','f') };
 
 #define FILE_TEXT N_("Output file")
-#define FILE_LONGTEXT N_("File to which the audio samples will be written to")
+#define FILE_LONGTEXT N_("File to which the audio samples will be written to.")
 
 vlc_module_begin();
     set_description( N_("File audio output") );
index 39cf7ec2b1287d6b1a898b0a6dc795d0b642077f..d0cd4c6492e717d7d2237a5b5d1b3e5fd32da931 100644 (file)
@@ -91,7 +91,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_jack_client = jack_client_new( "vlc" );
     if( p_sys->p_jack_client == NULL )
     {
-        msg_Err( p_aout, "Failed to connect to JACK server" );
+        msg_Err( p_aout, "failed to connect to JACK server" );
         free( p_sys );
         return VLC_EGENERIC;
     }
@@ -120,7 +120,7 @@ static int Open( vlc_object_t *p_this )
 
         if( p_sys->p_jack_port[i] == NULL )
         {
-            msg_Err( p_aout, "Failed to register a JACK port" );
+            msg_Err( p_aout, "failed to register a JACK port" );
             jack_client_close( p_sys->p_jack_client );
             free( p_sys );
             return VLC_EGENERIC;
@@ -130,7 +130,7 @@ static int Open( vlc_object_t *p_this )
     /* Tell the JACK server we are ready */
     if( jack_activate( p_sys->p_jack_client ) )
     {
-        msg_Err( p_aout, "Failed to activate JACK client" );
+        msg_Err( p_aout, "failed to activate JACK client" );
         jack_client_close( p_sys->p_jack_client );
         free( p_sys );
         return VLC_EGENERIC;
@@ -156,14 +156,14 @@ static int Open( vlc_object_t *p_this )
                               jack_port_name( p_sys->p_jack_port[i] ),
                               pp_in_ports[i_in]) )
             {
-                msg_Err( p_aout, "Failed to connect port %s to port %s",
+                msg_Err( p_aout, "failed to connect port %s to port %s",
                          jack_port_name( p_sys->p_jack_port[i] ),
                          pp_in_ports[i_in] );
 
             }
             else
             {
-                msg_Dbg( p_aout, "Connecting port %s to port %s",
+                msg_Dbg( p_aout, "connecting port %s to port %s",
                          jack_port_name( p_sys->p_jack_port[i] ),
                          pp_in_ports[i_in] );
             }
index 26348df00eee1e90d883481624cf997e042fadd4..4d0df4a487b841dfca78df9bfd1ae5462654343c 100644 (file)
@@ -155,7 +155,7 @@ static void Probe( aout_instance_t * p_aout )
         {
             if ( !(i_chanmask & DSP_BIND_FRONT) )
             {
-                msg_Err( p_aout, "No front channels ! (%x)",
+                msg_Err( p_aout, "no front channels! (%x)",
                          i_chanmask );
                 return;
             }
@@ -167,7 +167,7 @@ static void Probe( aout_instance_t * p_aout )
                          | AOUT_CHAN_LFE)) )
             {
                 val.i_int = AOUT_VAR_5_1;
-                text.psz_string = N_("5.1");
+                text.psz_string = "5.1";
                 var_Change( p_aout, "audio-device",
                             VLC_VAR_ADDCHOICE, &val, &text );
             }
@@ -254,7 +254,7 @@ static void Probe( aout_instance_t * p_aout )
         }
         else if( config_GetInt( p_aout, "spdif" ) )
         {
-            msg_Warn( p_aout, "s/pdif not supported by card" );
+            msg_Warn( p_aout, "S/PDIF not supported by card" );
         }
     }
 
index f5536a0648197f69379a8a02b038f17f8dc914f7..16995ab64cc1ceeea304abaf85de563bbbebe43c 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * portaudio.c : portaudio (v19) audio output plugin
  *****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002, 2006 the VideoLAN team
  * $Id$
  *
  * Authors: Frederic Ruget <frederic.ruget@free.fr>
@@ -174,7 +174,7 @@ static int Open( vlc_object_t * p_this )
     vlc_value_t val;
     int i_err;
 
-    msg_Dbg( p_aout, "Entering Open()");
+    msg_Dbg( p_aout, "entering Open()");
 
     /* Allocate p_sys structure */
     p_sys = (aout_sys_t *)malloc( sizeof(aout_sys_t) );
@@ -207,7 +207,7 @@ static int Open( vlc_object_t * p_this )
         /* Close device for now. We'll re-open it later on */
         if( ( i_err = Pa_Terminate() ) != paNoError )
         {
-            msg_Err( p_aout, "Pa_Terminate returned %d", i_err );
+            msg_Err( p_aout, "closing the device returned %d", i_err );
         }
 
         b_init = VLC_TRUE;
@@ -432,7 +432,7 @@ static int PAOpenDevice( aout_instance_t *p_aout )
         if( p_sys->deviceInfo->maxOutputChannels >= 6 )
         {
             val.i_int = AOUT_VAR_5_1;
-            text.psz_string = N_("5.1");
+            text.psz_string = "5.1";
             var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE,
                         &val, &text );
             msg_Dbg( p_aout, "device supports 5.1 channels" );