Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
76425f76
Commit
76425f76
authored
Dec 05, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevice: emulate drain
parent
dd3354cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
modules/audio_output/mmdevice.c
modules/audio_output/mmdevice.c
+13
-4
No files found.
modules/audio_output/mmdevice.c
View file @
76425f76
...
...
@@ -151,15 +151,24 @@ static void Pause(audio_output_t *aout, bool paused, mtime_t date)
static
void
Flush
(
audio_output_t
*
aout
,
bool
wait
)
{
aout_sys_t
*
sys
=
aout
->
sys
;
if
(
wait
)
return
;
/* Drain not implemented */
mtime_t
delay
=
VLC_TS_INVALID
;
EnterMTA
();
EnterCriticalSection
(
&
sys
->
lock
);
if
(
wait
)
{
/* Loosy drain emulation */
if
(
FAILED
(
aout_api_TimeGet
(
sys
->
api
,
&
delay
)))
delay
=
VLC_TS_INVALID
;
}
else
aout_api_Flush
(
sys
->
api
);
LeaveCriticalSection
(
&
sys
->
lock
);
LeaveMTA
();
if
(
delay
!=
VLC_TS_INVALID
)
Sleep
((
delay
/
(
CLOCK_FREQ
/
1000
))
+
1
);
}
static
ISimpleAudioVolume
*
GetSimpleVolume
(
audio_output_t
*
aout
)
...
...
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