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
3cf15eb2
Commit
3cf15eb2
authored
Jul 19, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSS: use software amplification
parent
e4e8a895
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/oss.c
modules/audio_output/oss.c
+6
-1
No files found.
modules/audio_output/Modules.am
View file @
3cf15eb2
...
...
@@ -20,9 +20,9 @@ libvlc_LTLIBRARIES += \
libamem_plugin.la \
libaout_file_plugin.la
liboss_plugin_la_SOURCES = oss.c packet.c
liboss_plugin_la_SOURCES = oss.c packet.c
volume.h
liboss_plugin_la_CFLAGS = $(AM_CFLAGS)
liboss_plugin_la_LIBADD = $(AM_LIBADD) $(OSS_LIBS)
liboss_plugin_la_LIBADD = $(AM_LIBADD) $(OSS_LIBS)
$(LIBM)
liboss_plugin_la_DEPENDENCIES =
if HAVE_OSS
libvlc_LTLIBRARIES += liboss_plugin.la
...
...
modules/audio_output/oss.c
View file @
3cf15eb2
...
...
@@ -75,6 +75,8 @@ struct aout_sys_t
int
i_fragstotal
;
mtime_t
max_buffer_duration
;
vlc_thread_t
thread
;
float
soft_gain
;
bool
soft_mute
;
};
/* This must be a power of 2. */
...
...
@@ -91,6 +93,8 @@ static void* OSSThread ( void * );
static
mtime_t
BufferDuration
(
audio_output_t
*
p_aout
);
#include "volume.h"
/*****************************************************************************
* Module descriptor
*****************************************************************************/
...
...
@@ -102,6 +106,7 @@ vlc_module_begin ()
set_subcategory
(
SUBCAT_AUDIO_AOUT
)
add_loadfile
(
"oss-audio-device"
,
"/dev/dsp"
,
N_
(
"OSS DSP device"
),
NULL
,
false
)
add_sw_gain
()
set_capability
(
"audio output"
,
100
)
add_shortcut
(
"oss"
)
...
...
@@ -471,7 +476,7 @@ static int Open( vlc_object_t *p_this )
aout_PacketInit
(
p_aout
,
&
p_sys
->
packet
,
audio_buf
.
fragsize
/
p_aout
->
format
.
i_bytes_per_frame
);
aout_
VolumeSoft
Init
(
p_aout
);
aout_
SoftVolume
Init
(
p_aout
);
}
/* Create OSS thread and wait for its readiness. */
...
...
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