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
e4e8a895
Commit
e4e8a895
authored
Jul 19, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: use software amplification
parent
db635d17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
modules/audio_output/Modules.am
modules/audio_output/Modules.am
+2
-2
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+6
-1
No files found.
modules/audio_output/Modules.am
View file @
e4e8a895
...
...
@@ -28,9 +28,9 @@ if HAVE_OSS
libvlc_LTLIBRARIES += liboss_plugin.la
endif
libalsa_plugin_la_SOURCES = alsa.c
libalsa_plugin_la_SOURCES = alsa.c
volume.h
libalsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS)
libalsa_plugin_la_LIBADD = $(AM_LIBADD) $(ALSA_LIBS)
libalsa_plugin_la_LIBADD = $(AM_LIBADD) $(ALSA_LIBS)
$(LIBM)
libalsa_plugin_la_DEPENDENCIES =
if HAVE_ALSA
libvlc_LTLIBRARIES += libalsa_plugin.la
...
...
modules/audio_output/alsa.c
View file @
e4e8a895
...
...
@@ -44,8 +44,12 @@ struct aout_sys_t
{
snd_pcm_t
*
pcm
;
void
(
*
reorder
)
(
void
*
,
size_t
,
unsigned
);
float
soft_gain
;
bool
soft_mute
;
};
#include "volume.h"
#define A52_FRAME_NB 1536
static
int
Open
(
vlc_object_t
*
);
...
...
@@ -88,6 +92,7 @@ vlc_module_begin ()
add_integer
(
"alsa-audio-channels"
,
AOUT_CHANS_FRONT
,
AUDIO_CHAN_TEXT
,
AUDIO_CHAN_LONGTEXT
,
false
)
change_integer_list
(
channels
,
channels_text
)
add_sw_gain
()
set_capability
(
"audio output"
,
150
)
set_callbacks
(
Open
,
Close
)
vlc_module_end
()
...
...
@@ -528,7 +533,7 @@ static int Open (vlc_object_t *obj)
sys
->
reorder
=
NULL
;
}
aout_
VolumeSoft
Init
(
aout
);
aout_
SoftVolume
Init
(
aout
);
}
aout
->
pf_play
=
Play
;
...
...
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