Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-ui-redesign
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
8e394d70
Commit
8e394d70
authored
Mar 31, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* 2nd review of modules/audio* (refs #438)
parent
7629cf1b
Changes
34
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
107 additions
and
107 deletions
+107
-107
modules/audio_filter/channel_mixer/dolby.c
modules/audio_filter/channel_mixer/dolby.c
+4
-4
modules/audio_filter/channel_mixer/headphone.c
modules/audio_filter/channel_mixer/headphone.c
+8
-8
modules/audio_filter/channel_mixer/simple.c
modules/audio_filter/channel_mixer/simple.c
+2
-2
modules/audio_filter/channel_mixer/trivial.c
modules/audio_filter/channel_mixer/trivial.c
+2
-2
modules/audio_filter/converter/a52tospdif.c
modules/audio_filter/converter/a52tospdif.c
+4
-4
modules/audio_filter/converter/dtstofloat32.c
modules/audio_filter/converter/dtstofloat32.c
+12
-12
modules/audio_filter/converter/dtstospdif.c
modules/audio_filter/converter/dtstospdif.c
+2
-2
modules/audio_filter/converter/fixed32tofloat32.c
modules/audio_filter/converter/fixed32tofloat32.c
+3
-3
modules/audio_filter/converter/fixed32tos16.c
modules/audio_filter/converter/fixed32tos16.c
+2
-2
modules/audio_filter/converter/float32tos16.c
modules/audio_filter/converter/float32tos16.c
+2
-2
modules/audio_filter/converter/float32tos8.c
modules/audio_filter/converter/float32tos8.c
+2
-2
modules/audio_filter/converter/float32tou16.c
modules/audio_filter/converter/float32tou16.c
+2
-2
modules/audio_filter/converter/float32tou8.c
modules/audio_filter/converter/float32tou8.c
+2
-2
modules/audio_filter/converter/s16tofixed32.c
modules/audio_filter/converter/s16tofixed32.c
+2
-2
modules/audio_filter/converter/s16tofloat32.c
modules/audio_filter/converter/s16tofloat32.c
+2
-2
modules/audio_filter/converter/s16tofloat32swab.c
modules/audio_filter/converter/s16tofloat32swab.c
+2
-2
modules/audio_filter/converter/s8tofloat32.c
modules/audio_filter/converter/s8tofloat32.c
+2
-2
modules/audio_filter/converter/u8tofixed32.c
modules/audio_filter/converter/u8tofixed32.c
+2
-2
modules/audio_filter/converter/u8tofloat32.c
modules/audio_filter/converter/u8tofloat32.c
+2
-2
modules/audio_filter/equalizer.c
modules/audio_filter/equalizer.c
+8
-8
modules/audio_filter/format.c
modules/audio_filter/format.c
+1
-1
modules/audio_filter/normvol.c
modules/audio_filter/normvol.c
+3
-3
modules/audio_filter/param_eq.c
modules/audio_filter/param_eq.c
+1
-1
modules/audio_filter/resampler/bandlimited.c
modules/audio_filter/resampler/bandlimited.c
+2
-2
modules/audio_filter/resampler/linear.c
modules/audio_filter/resampler/linear.c
+3
-3
modules/audio_filter/resampler/trivial.c
modules/audio_filter/resampler/trivial.c
+2
-2
modules/audio_filter/resampler/ugly.c
modules/audio_filter/resampler/ugly.c
+2
-2
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+4
-4
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+4
-4
modules/audio_output/directx.c
modules/audio_output/directx.c
+2
-2
modules/audio_output/file.c
modules/audio_output/file.c
+4
-4
modules/audio_output/jack.c
modules/audio_output/jack.c
+5
-5
modules/audio_output/oss.c
modules/audio_output/oss.c
+3
-3
modules/audio_output/portaudio.c
modules/audio_output/portaudio.c
+4
-4
No files found.
modules/audio_filter/channel_mixer/dolby.c
View file @
8e394d70
/*****************************************************************************
* 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 s
urround encoded streams"
)
);
set_shortname
(
_
(
"Dolby
s
urround decoder"
)
);
set_description
(
N_
(
"Simple decoder for
Dolby S
urround encoded streams"
)
);
set_shortname
(
_
(
"Dolby
S
urround 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
,
"
O
ut of memory"
);
msg_Err
(
p_filter
,
"
o
ut of memory"
);
return
VLC_EGENERIC
;
}
p_filter
->
p_sys
->
i_left
=
-
1
;
...
...
modules/audio_filter/channel_mixer/headphone.c
View file @
8e394d70
...
...
@@ -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-200
5
the VideoLAN team
* Copyright (C) 2002-200
6
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
,
"
F
ilter discarded (incompatible format)"
);
msg_Dbg
(
p_filter
,
"
f
ilter 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
,
"
R
equesting specific format"
);
msg_Dbg
(
p_filter
,
"
r
equesting 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
,
"
O
ut of memory"
);
msg_Err
(
p_filter
,
"
o
ut 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
;
...
...
modules/audio_filter/channel_mixer/simple.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for simple channel mixing"
)
);
set_description
(
_
(
"
A
udio filter for simple channel mixing"
)
);
set_capability
(
"audio filter"
,
10
);
set_category
(
CAT_AUDIO
);
set_subcategory
(
SUBCAT_AUDIO_MISC
);
...
...
modules/audio_filter/channel_mixer/trivial.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for trivial channel mixing"
)
);
set_description
(
_
(
"
A
udio filter for trivial channel mixing"
)
);
set_capability
(
"audio filter"
,
1
);
set_category
(
CAT_AUDIO
);
set_subcategory
(
SUBCAT_AUDIO_MISC
);
...
...
modules/audio_filter/converter/a52tospdif.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for A/52->S/PDIF encapsulation"
)
);
set_description
(
_
(
"
A
udio 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 M
A
c OS X however, little endian devices are also common.
* endianness of the computer
system.
* On M
a
c 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
};
...
...
modules/audio_filter/converter/dtstofloat32.c
View file @
8e394d70
/*****************************************************************************
* dtstofloat32.c: DTS Coherent Acoustics decoder plugin for VLC.
* This plugin makes use of libd
ts
to do the actual decoding
* (http://
www.videolan.org/dtsdec/
).
* This plugin makes use of libd
ca
to do the actual decoding
* (http://
developers.videolan.org/libdca.html
).
*****************************************************************************
* Copyright (C) 2001, 2002 the VideoLAN team
* Copyright (C) 2001, 2002
libdca
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>
/* libd
ts
header file */
#include <dts.h>
/* libd
ca
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
*
);
/* libd
ts
channel order */
/* libd
ca
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
;
/* libd
ts
internal structure */
dts_state_t
*
p_libdts
;
/* libd
ca
internal structure */
vlc_bool_t
b_dynrng
;
/* see below */
int
i_flags
;
/* libd
ts
flags, see dtsdec/doc/libdts.txt */
int
i_flags
;
/* libd
ca
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
(
_
(
"D
TS
"
)
);
set_shortname
(
_
(
"D
CA
"
)
);
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 libd
ts
*/
/* Initialize libd
ca
*/
p_sys
->
p_libdts
=
dts_init
(
0
);
if
(
p_sys
->
p_libdts
==
NULL
)
{
msg_Err
(
p_this
,
"unable to initialize libd
ts
"
);
msg_Err
(
p_this
,
"unable to initialize libd
ca
"
);
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
,
"libd
ts
couldn't sync on frame"
);
msg_Warn
(
p_aout
,
"libd
ca
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
,
"libd
ts
couldn't do the requested downmix 0x%x->0x%x"
,
"libd
ca
couldn't do the requested downmix 0x%x->0x%x"
,
p_sys
->
i_flags
&
DTS_CHANNEL_MASK
,
i_flags
&
DTS_CHANNEL_MASK
);
...
...
modules/audio_filter/converter/dtstospdif.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for DTS->S/PDIF encapsulation"
)
);
set_description
(
_
(
"
A
udio filter for DTS->S/PDIF encapsulation"
)
);
set_capability
(
"audio filter"
,
10
);
set_callbacks
(
Create
,
Close
);
vlc_module_end
();
...
...
modules/audio_filter/converter/fixed32tofloat32.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for fixed32<->float32 conversion"
)
);
set_description
(
_
(
"
A
udio filter for fixed32<->float32 conversion"
)
);
set_capability
(
"audio filter"
,
10
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/fixed32tos16.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for fixed32->s16 conversion"
)
);
set_description
(
_
(
"
A
udio filter for fixed32->s16 conversion"
)
);
set_capability
(
"audio filter"
,
10
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/float32tos16.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for float32->s16 conversion"
)
);
set_description
(
_
(
"
A
udio filter for float32->s16 conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/float32tos8.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for float32->s8 conversion"
)
);
set_description
(
_
(
"
A
udio filter for float32->s8 conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/float32tou16.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for float32->u16 conversion"
)
);
set_description
(
_
(
"
A
udio filter for float32->u16 conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/float32tou8.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for float32->u8 conversion"
)
);
set_description
(
_
(
"
A
udio filter for float32->u8 conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/s16tofixed32.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for s16->fixed32 conversion"
)
);
set_description
(
_
(
"
A
udio filter for s16->fixed32 conversion"
)
);
set_capability
(
"audio filter"
,
15
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/s16tofloat32.c
View file @
8e394d70
/*****************************************************************************
* s16tofloat32.c : converter from signed 16 bits integer to float32
*****************************************************************************
* Copyright (C) 2002-200
5
the VideoLAN team
* Copyright (C) 2002-200
6
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
(
_
(
"
a
udio filter for s16->float32 conversion"
)
);
set_description
(
_
(
"
A
udio filter for s16->float32 conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/s16tofloat32swab.c
View file @
8e394d70
...
...
@@ -2,7 +2,7 @@
* s16tofloat32swab.c : converter from signed 16 bits integer to float32
* with endianness change
*****************************************************************************
* Copyright (C) 2002-200
5
the VideoLAN team
* Copyright (C) 2002-200
6
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
(
_
(
"
a
udio filter for s16->float32 with endianness conversion"
)
);
_
(
"
A
udio filter for s16->float32 with endianness conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/s8tofloat32.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for s8->float32 conversion"
)
);
set_description
(
_
(
"
A
udio filter for s8->float32 conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/u8tofixed32.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for u8->fixed32 conversion"
)
);
set_description
(
_
(
"
A
udio filter for u8->fixed32 conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/converter/u8tofloat32.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for u8->float32 conversion"
)
);
set_description
(
_
(
"
A
udio filter for u8->float32 conversion"
)
);
set_capability
(
"audio filter"
,
1
);
set_callbacks
(
Create
,
NULL
);
vlc_module_end
();
...
...
modules/audio_filter/equalizer.c
View file @
8e394d70
/*****************************************************************************
* 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 t
wice the audio. This provides a more
" \
#define TWOPASS_LONGTEXT N_( "Filter t
he 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
,
"
B
ad input or output format"
);
msg_Warn
(
p_filter
,
"
b
ad 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
;
}
...
...
modules/audio_filter/format.c
View file @
8e394d70
...
...
@@ -198,7 +198,7 @@ static struct
* Module descriptor
*****************************************************************************/
vlc_module_begin
();
set_description
(
_
(
"
a
udio filter for PCM format conversion"
)
);
set_description
(
_
(
"
A
udio filter for PCM format conversion"
)
);
set_category
(
CAT_AUDIO
);
set_subcategory
(
SUBCAT_AUDIO_MISC
);
set_capability
(
"audio filter2"
,
1
);
...
...
modules/audio_filter/normvol.c
View file @
8e394d70
/*****************************************************************************
* 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
,
"
B
ad input or output format"
);
msg_Warn
(
p_filter
,
"
b
ad input or output format"
);
}
if
(
!
AOUT_FMTS_SIMILAR
(
&
p_filter
->
input
,
&
p_filter
->
output
)
)
...
...
modules/audio_filter/param_eq.c
View file @
8e394d70
...
...
@@ -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
,
"
B
ad input or output format"
);
msg_Warn
(
p_filter
,
"
b
ad input or output format"
);
}
if
(
!
AOUT_FMTS_SIMILAR
(
&
p_filter
->
input
,
&
p_filter
->
output
)
)
{
...
...
modules/audio_filter/resampler/bandlimited.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for band-limited interpolation resampling"
)
);
set_description
(
_
(
"
A
udio filter for band-limited interpolation resampling"
)
);
set_capability
(
"audio filter"
,
20
);
set_callbacks
(
Create
,
Close
);
vlc_module_end
();
...
...
modules/audio_filter/resampler/linear.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for linear interpolation resampling"
)
);
set_description
(
_
(
"
A
udio 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
(
_
(
"
a
udio filter for linear interpolation resampling"
)
);
set_description
(
_
(
"
A
udio filter for linear interpolation resampling"
)
);
set_capability
(
"audio filter2"
,
5
);
set_callbacks
(
OpenFilter
,
CloseFilter
);
vlc_module_end
();
...
...
modules/audio_filter/resampler/trivial.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for trivial resampling"
)
);
set_description
(
_
(
"
A
udio filter for trivial resampling"
)
);
set_capability
(
"audio filter"
,
1
);
set_category
(
CAT_AUDIO
);
set_subcategory
(
SUBCAT_AUDIO_MISC
);
...
...
modules/audio_filter/resampler/ugly.c
View file @
8e394d70
/*****************************************************************************
* 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
(
_
(
"
a
udio filter for ugly resampling"
)
);
set_description
(
_
(
"
A
udio filter for ugly resampling"
)
);
set_capability
(
"audio filter"
,
2
);
set_category
(
CAT_AUDIO
);
set_subcategory
(
SUBCAT_AUDIO_MISC
);
...
...
modules/audio_output/alsa.c
View file @
8e394d70
...
...
@@ -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"
,