Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
448
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
9b925784
Commit
9b925784
authored
12 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
Volume mixer: drop FI32
parent
2c3a9415
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
modules/LIST
+1
-1
1 addition, 1 deletion
modules/LIST
modules/audio_mixer/Modules.am
+2
-2
2 additions, 2 deletions
modules/audio_mixer/Modules.am
modules/audio_mixer/integer.c
+2
-24
2 additions, 24 deletions
modules/audio_mixer/integer.c
po/POTFILES.in
+1
-1
1 addition, 1 deletion
po/POTFILES.in
with
6 additions
and
28 deletions
modules/LIST
+
1
−
1
View file @
9b925784
...
@@ -120,7 +120,6 @@ $Id$
...
@@ -120,7 +120,6 @@ $Id$
* faad: AAC decoder using libfaad2
* faad: AAC decoder using libfaad2
* fb: video output module for the Linux framebuffer
* fb: video output module for the Linux framebuffer
* filesystem: Filesystem access module
* filesystem: Filesystem access module
* fixed32_mixer: Fixed-point audio mixer
* flac: Flac decoder using libflac
* flac: Flac decoder using libflac
* flacsys: FLAC demuxer
* flacsys: FLAC demuxer
* float32_mixer: Precise float32 audio mixer
* float32_mixer: Precise float32 audio mixer
...
@@ -163,6 +162,7 @@ $Id$
...
@@ -163,6 +162,7 @@ $Id$
* idummy: dummy input
* idummy: dummy input
* image: Image file video output
* image: Image file video output
* inhibit: preventing the computer from suspending
* inhibit: preventing the computer from suspending
* integer_mixer: Integer audio mixer
* invert: inverse video filter
* invert: inverse video filter
* iomx: IPC/OpenMaxIL for Android
* iomx: IPC/OpenMaxIL for Android
* jack: jack server audio output
* jack: jack server audio output
...
...
This diff is collapsed.
Click to expand it.
modules/audio_mixer/Modules.am
+
2
−
2
View file @
9b925784
SOURCES_float32_mixer = float32.c
SOURCES_float32_mixer = float32.c
SOURCES_
fixed32
_mixer =
fixed32
.c
SOURCES_
integer
_mixer =
integer
.c
libvlc_LTLIBRARIES += \
libvlc_LTLIBRARIES += \
libfloat32_mixer_plugin.la \
libfloat32_mixer_plugin.la \
lib
fixed32
_mixer_plugin.la
lib
integer
_mixer_plugin.la
This diff is collapsed.
Click to expand it.
modules/audio_mixer/
fixed32
.c
→
modules/audio_mixer/
integer
.c
+
2
−
24
View file @
9b925784
/*****************************************************************************
/*****************************************************************************
*
fixed32
.c
:
fixed-point
software volume
*
integer
.c:
integer
software volume
*****************************************************************************
*****************************************************************************
* Copyright (C) 2011 Rémi Denis-Courmont
* Copyright (C) 2011 Rémi Denis-Courmont
*
*
...
@@ -32,12 +32,11 @@ static int Activate (vlc_object_t *);
...
@@ -32,12 +32,11 @@ static int Activate (vlc_object_t *);
vlc_module_begin
()
vlc_module_begin
()
set_category
(
CAT_AUDIO
)
set_category
(
CAT_AUDIO
)
set_subcategory
(
SUBCAT_AUDIO_MISC
)
set_subcategory
(
SUBCAT_AUDIO_MISC
)
set_description
(
N_
(
"
Fixed-point
audio mixer"
))
set_description
(
N_
(
"
Integer
audio mixer"
))
set_capability
(
"audio mixer"
,
9
)
set_capability
(
"audio mixer"
,
9
)
set_callbacks
(
Activate
,
NULL
)
set_callbacks
(
Activate
,
NULL
)
vlc_module_end
()
vlc_module_end
()
static
void
FilterFI32
(
audio_mixer_t
*
,
block_t
*
,
float
);
static
void
FilterS16N
(
audio_mixer_t
*
,
block_t
*
,
float
);
static
void
FilterS16N
(
audio_mixer_t
*
,
block_t
*
,
float
);
static
int
Activate
(
vlc_object_t
*
obj
)
static
int
Activate
(
vlc_object_t
*
obj
)
...
@@ -46,9 +45,6 @@ static int Activate (vlc_object_t *obj)
...
@@ -46,9 +45,6 @@ static int Activate (vlc_object_t *obj)
switch
(
mixer
->
format
)
switch
(
mixer
->
format
)
{
{
case
VLC_CODEC_FI32
:
mixer
->
mix
=
FilterFI32
;
break
;
case
VLC_CODEC_S16N
:
case
VLC_CODEC_S16N
:
mixer
->
mix
=
FilterS16N
;
mixer
->
mix
=
FilterS16N
;
break
;
break
;
...
@@ -58,24 +54,6 @@ static int Activate (vlc_object_t *obj)
...
@@ -58,24 +54,6 @@ static int Activate (vlc_object_t *obj)
return
0
;
return
0
;
}
}
static
void
FilterFI32
(
audio_mixer_t
*
mixer
,
block_t
*
block
,
float
volume
)
{
const
int64_t
mult
=
volume
*
0x1
.
p32
;
if
(
mult
==
0x1
.
p32
)
return
;
int32_t
*
p
=
(
int32_t
*
)
block
->
p_buffer
;
for
(
size_t
n
=
block
->
i_buffer
/
sizeof
(
*
p
);
n
>
0
;
n
--
)
{
*
p
=
(
*
p
*
mult
)
>>
INT64_C
(
32
);
p
++
;
}
(
void
)
mixer
;
}
static
void
FilterS16N
(
audio_mixer_t
*
mixer
,
block_t
*
block
,
float
volume
)
static
void
FilterS16N
(
audio_mixer_t
*
mixer
,
block_t
*
block
,
float
volume
)
{
{
int32_t
mult
=
volume
*
0x1
.
p16
;
int32_t
mult
=
volume
*
0x1
.
p16
;
...
...
This diff is collapsed.
Click to expand it.
po/POTFILES.in
+
1
−
1
View file @
9b925784
...
@@ -319,8 +319,8 @@ modules/audio_filter/spatializer/revmodel.cpp
...
@@ -319,8 +319,8 @@ modules/audio_filter/spatializer/revmodel.cpp
modules/audio_filter/spatializer/revmodel.hpp
modules/audio_filter/spatializer/revmodel.hpp
modules/audio_filter/spatializer/spatializer.cpp
modules/audio_filter/spatializer/spatializer.cpp
modules/audio_filter/spatializer/tuning.h
modules/audio_filter/spatializer/tuning.h
modules/audio_mixer/fixed32.c
modules/audio_mixer/float32.c
modules/audio_mixer/float32.c
modules/audio_mixer/integer.c
modules/audio_output/adummy.c
modules/audio_output/adummy.c
modules/audio_output/alsa.c
modules/audio_output/alsa.c
modules/audio_output/amem.c
modules/audio_output/amem.c
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment