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
5910fb02
Commit
5910fb02
authored
Aug 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: implement flush
parent
cba93daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+22
-1
No files found.
modules/audio_output/pulse.c
View file @
5910fb02
...
...
@@ -515,6 +515,27 @@ static void Pause(audio_output_t *aout, bool paused, mtime_t date)
vlc_pa_unlock
();
}
/**
* Flush or drain the playback stream
*/
static
void
Flush
(
audio_output_t
*
aout
,
bool
wait
)
{
aout_sys_t
*
sys
=
aout
->
sys
;
pa_stream
*
s
=
sys
->
stream
;
pa_operation
*
op
;
vlc_pa_lock
();
if
(
wait
)
op
=
pa_stream_drain
(
s
,
NULL
,
NULL
);
/* TODO: wait for drain completion*/
else
op
=
pa_stream_flush
(
s
,
NULL
,
NULL
);
if
(
op
!=
NULL
)
pa_operation_unref
(
op
);
vlc_pa_unlock
();
}
static
int
VolumeSet
(
audio_output_t
*
aout
,
float
vol
,
bool
mute
)
{
aout_sys_t
*
sys
=
aout
->
sys
;
...
...
@@ -783,7 +804,7 @@ static int Open(vlc_object_t *obj)
aout
->
format
.
i_format
=
format
;
aout
->
pf_play
=
Play
;
aout
->
pf_pause
=
Pause
;
aout
->
pf_flush
=
NULL
;
aout
->
pf_flush
=
Flush
;
aout
->
pf_volume_set
=
VolumeSet
;
return
VLC_SUCCESS
;
...
...
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