Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc
Commits
9b925784
Commit
9b925784
authored
Jul 04, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Volume mixer: drop FI32
parent
2c3a9415
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
28 deletions
+6
-28
modules/LIST
modules/LIST
+1
-1
modules/audio_mixer/Modules.am
modules/audio_mixer/Modules.am
+2
-2
modules/audio_mixer/integer.c
modules/audio_mixer/integer.c
+2
-24
po/POTFILES.in
po/POTFILES.in
+1
-1
No files found.
modules/LIST
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
...
...
modules/audio_mixer/Modules.am
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
modules/audio_mixer/
fixed32
.c
→
modules/audio_mixer/
integer
.c
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
;
...
...
po/POTFILES.in
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment