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
8ac29ed7
Commit
8ac29ed7
authored
Oct 23, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/audio_output/alsa.c: recover more easily in case of underrun.
parent
8d663847
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+13
-8
No files found.
modules/audio_output/alsa.c
View file @
8ac29ed7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* alsa.c : alsa plugin for vlc
* alsa.c : alsa plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: alsa.c,v 1.3
4 2003/08/03 23:11:21
gbazin Exp $
* $Id: alsa.c,v 1.3
5 2003/10/23 21:55:50
gbazin Exp $
*
*
* Authors: Henri Fallon <henri@videolan.org> - Original Author
* Authors: Henri Fallon <henri@videolan.org> - Original Author
* Jeffrey Baker <jwbaker@acm.org> - Port to ALSA 1.0 API
* Jeffrey Baker <jwbaker@acm.org> - Port to ALSA 1.0 API
...
@@ -726,15 +726,20 @@ static void ALSAFill( aout_instance_t * p_aout )
...
@@ -726,15 +726,20 @@ static void ALSAFill( aout_instance_t * p_aout )
msleep
(
p_sys
->
i_period_time
>>
1
);
msleep
(
p_sys
->
i_period_time
>>
1
);
return
;
return
;
}
}
}
/* Here the device should be either in the RUNNING state either in
/* Underrun, try to recover as quickly as possible */
the PREPARE state. p_status is valid. */
next_date
=
mdate
();
}
else
{
/* Here the device should be either in the RUNNING state.
* p_status is valid. */
snd_pcm_status_get_tstamp
(
p_status
,
&
ts_next
);
snd_pcm_status_get_tstamp
(
p_status
,
&
ts_next
);
next_date
=
(
mtime_t
)
ts_next
.
tv_sec
*
1000000
+
ts_next
.
tv_usec
;
next_date
=
(
mtime_t
)
ts_next
.
tv_sec
*
1000000
+
ts_next
.
tv_usec
;
next_date
+=
(
mtime_t
)
snd_pcm_status_get_delay
(
p_status
)
next_date
+=
(
mtime_t
)
snd_pcm_status_get_delay
(
p_status
)
*
1000000
/
p_aout
->
output
.
output
.
i_rate
;
*
1000000
/
p_aout
->
output
.
output
.
i_rate
;
}
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
next_date
,
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
next_date
,
(
p_aout
->
output
.
output
.
i_format
==
(
p_aout
->
output
.
output
.
i_format
==
...
...
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