Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
3b08fd1d
Commit
3b08fd1d
authored
Aug 24, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/audio_output/oss.c: we don't ask too early for a new buffer,
but rather sleep a bit.
parent
cd7b7994
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
modules/audio_output/oss.c
modules/audio_output/oss.c
+13
-4
No files found.
modules/audio_output/oss.c
View file @
3b08fd1d
...
...
@@ -2,7 +2,7 @@
* oss.c : OSS /dev/dsp module for vlc
*****************************************************************************
* Copyright (C) 2000-2002 VideoLAN
* $Id: oss.c,v 1.1
6 2002/08/24 11:46:44
sam Exp $
* $Id: oss.c,v 1.1
7 2002/08/24 21:11:21
sam Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -65,7 +65,7 @@ struct aout_sys_t
volatile
vlc_bool_t
b_initialized
;
};
#define FRAME_SIZE
2048
#define FRAME_SIZE
1024
#define FRAME_COUNT 8
#define A52_FRAME_NB 1536
...
...
@@ -323,11 +323,20 @@ static int OSSThread( aout_instance_t * p_aout )
/
p_aout
->
output
.
output
.
i_rate
*
p_aout
->
output
.
output
.
i_frame_length
;
while
(
buffered
>
50000
)
{
msleep
(
buffered
/
2
-
10000
);
buffered
=
(
mtime_t
)
GetBufInfo
(
p_aout
)
*
1000000
/
p_aout
->
output
.
output
.
i_bytes_per_frame
/
p_aout
->
output
.
output
.
i_rate
*
p_aout
->
output
.
output
.
i_frame_length
;
}
/* Next buffer will be played at mdate()+buffered, and we tell
* the audio output that it can wait for a new packet for
*
buffered/2
microseconds. */
*
20000
microseconds. */
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
mdate
()
+
buffered
,
buffered
/
2
,
VLC_FALSE
);
20000
,
VLC_FALSE
);
}
else
{
...
...
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