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
96029b9e
Commit
96029b9e
authored
Mar 31, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSS: remove buggy option (from 2002)
parent
cd03ef9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
modules/audio_output/oss.c
modules/audio_output/oss.c
+0
-25
No files found.
modules/audio_output/oss.c
View file @
96029b9e
...
...
@@ -71,7 +71,6 @@
struct
aout_sys_t
{
int
i_fd
;
int
b_workaround_buggy_driver
;
int
i_fragstotal
;
mtime_t
max_buffer_duration
;
};
...
...
@@ -94,12 +93,6 @@ static mtime_t BufferDuration( aout_instance_t * p_aout );
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#define BUGGY_TEXT N_("Try to work around buggy OSS drivers")
#define BUGGY_LONGTEXT N_( \
"Some buggy OSS drivers just don't like when their internal buffers " \
"are completely filled (the sound gets heavily hashed). If you have one " \
"of these drivers, then you need to enable this option." )
vlc_module_begin
()
set_shortname
(
"OSS"
)
set_description
(
N_
(
"UNIX OSS audio output"
)
)
...
...
@@ -109,7 +102,6 @@ vlc_module_begin ()
add_loadfile
(
"oss-audio-device"
,
"/dev/dsp"
,
N_
(
"OSS DSP device"
),
NULL
,
false
)
add_deprecated_alias
(
"dspdev"
)
/* deprecated since 0.9.3 */
add_bool
(
"oss-buggy"
,
false
,
BUGGY_TEXT
,
BUGGY_LONGTEXT
,
true
)
set_capability
(
"audio output"
,
100
)
add_shortcut
(
"oss"
)
...
...
@@ -509,9 +501,6 @@ static int Open( vlc_object_t *p_this )
aout_VolumeSoftInit
(
p_aout
);
}
p_aout
->
output
.
p_sys
->
b_workaround_buggy_driver
=
var_InheritBool
(
p_aout
,
"oss-buggy"
);
/* Create OSS thread and wait for its readiness. */
if
(
vlc_thread_create
(
p_aout
,
OSSThread
,
VLC_THREAD_PRIORITY_OUTPUT
)
)
...
...
@@ -599,20 +588,6 @@ static void* OSSThread( vlc_object_t *p_this )
{
mtime_t
buffered
=
BufferDuration
(
p_aout
);
if
(
p_aout
->
output
.
p_sys
->
b_workaround_buggy_driver
)
{
#define i_fragstotal p_aout->output.p_sys->i_fragstotal
/* Wait a bit - we don't want our buffer to be full */
if
(
buffered
>
(
p_aout
->
output
.
p_sys
->
max_buffer_duration
/
i_fragstotal
*
(
i_fragstotal
-
1
))
)
{
msleep
((
p_aout
->
output
.
p_sys
->
max_buffer_duration
/
i_fragstotal
));
buffered
=
BufferDuration
(
p_aout
);
}
#undef i_fragstotal
}
/* Next buffer will be played at mdate() + buffered */
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
mdate
()
+
buffered
,
false
);
...
...
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