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
c1622c2c
Commit
c1622c2c
authored
Apr 27, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSS: select buffer timings
This should fix stutter.
parent
f07447b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
modules/audio_output/oss.c
modules/audio_output/oss.c
+16
-0
No files found.
modules/audio_output/oss.c
View file @
c1622c2c
...
...
@@ -214,6 +214,22 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
}
aout_FormatPrepare
(
fmt
);
/* Select timing */
unsigned
bytes
;
if
(
spdif
)
bytes
=
AOUT_SPDIF_SIZE
;
else
bytes
=
fmt
->
i_rate
/
(
CLOCK_FREQ
/
AOUT_MIN_PREPARE_TIME
)
*
fmt
->
i_bytes_per_frame
;
if
(
unlikely
(
bytes
<
16
))
bytes
=
16
;
int
frag
=
(
AOUT_MAX_ADVANCE_TIME
/
AOUT_MIN_PREPARE_TIME
)
<<
16
|
(
32
-
clz32
(
bytes
-
1
));
if
(
ioctl
(
fd
,
SNDCTL_DSP_SETFRAGMENT
,
&
frag
)
<
0
)
msg_Err
(
aout
,
"cannot set 0x%08x fragment: %s"
,
frag
,
vlc_strerror_c
(
errno
));
sys
->
fd
=
fd
;
VolumeSync
(
aout
);
sys
->
starting
=
true
;
...
...
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