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
d5be8c74
Commit
d5be8c74
authored
Oct 18, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/pipewire: attempt to change the graph sample rate
Requires PipeWire 0.3.32. Closes
https://github.com/MusicPlayerDaemon/MPD/issues/1283
parent
c112cb60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
NEWS
NEWS
+1
-0
PipeWireOutputPlugin.cxx
src/output/plugins/PipeWireOutputPlugin.cxx
+7
-0
No files found.
NEWS
View file @
d5be8c74
ver 0.23.1 (not yet released)
* output
- pipewire: attempt to change the graph sample rate
- snapcast: fix time stamp bug which caused "Failed to get chunk"
* fix libfmt linker problems
* fix broken password authentication
...
...
src/output/plugins/PipeWireOutputPlugin.cxx
View file @
d5be8c74
...
...
@@ -383,6 +383,13 @@ PipeWireOutput::Open(AudioFormat &audio_format)
if
(
target
!=
nullptr
&&
target_id
==
PW_ID_ANY
)
pw_properties_setf
(
props
,
PW_KEY_NODE_TARGET
,
"%s"
,
target
);
#ifdef PW_KEY_NODE_RATE
/* ask PipeWire to change the graph sample rate to ours
(requires PipeWire 0.3.32) */
pw_properties_setf
(
props
,
PW_KEY_NODE_RATE
,
"1/%u"
,
audio_format
.
sample_rate
);
#endif
const
PipeWire
::
ThreadLoopLock
lock
(
thread_loop
);
stream
=
pw_stream_new_simple
(
pw_thread_loop_get_loop
(
thread_loop
),
...
...
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