Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7c9f4f7e
Commit
7c9f4f7e
authored
3 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/pipewire: create inactive stream, fill ring_buffer first
This avoids underruns at the start of playback.
parent
00fd692e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
PipeWireOutputPlugin.cxx
src/output/plugins/PipeWireOutputPlugin.cxx
+8
-1
No files found.
src/output/plugins/PipeWireOutputPlugin.cxx
View file @
7c9f4f7e
...
...
@@ -336,7 +336,13 @@ PipeWireOutput::Open(AudioFormat &audio_format)
{
disconnected
=
false
;
restore_volume
=
true
;
paused
=
false
;
/* we're paused (inactive) now because of the flag
PW_STREAM_FLAG_INACTIVE; this way, we can fill the
ring_buffer before activating the stream, to avoid
underruns */
paused
=
true
;
drain_requested
=
false
;
drained
=
true
;
...
...
@@ -380,6 +386,7 @@ PipeWireOutput::Open(AudioFormat &audio_format)
PW_DIRECTION_OUTPUT
,
target_id
,
(
enum
pw_stream_flags
)(
PW_STREAM_FLAG_AUTOCONNECT
|
PW_STREAM_FLAG_INACTIVE
|
PW_STREAM_FLAG_MAP_BUFFERS
|
PW_STREAM_FLAG_RT_PROCESS
),
params
,
1
);
...
...
This diff is collapsed.
Click to expand it.
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