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
0ba867ec
Commit
0ba867ec
authored
Oct 21, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/pipewire: use MAX_CHANNELS, not SPA_AUDIO_MAX_CHANNELS
MPD supports only 8 channels, so MAX_CHANNELS is enough, the array doens't need to be SPA_AUDIO_MAX_CHANNELS (which is 64).
parent
866d1471
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PipeWireOutputPlugin.cxx
src/output/plugins/PipeWireOutputPlugin.cxx
+1
-1
No files found.
src/output/plugins/PipeWireOutputPlugin.cxx
View file @
0ba867ec
...
...
@@ -292,7 +292,7 @@ PipeWireOutput::SetVolume(float _volume)
float
newvol
=
_volume
*
_volume
*
_volume
;
if
(
stream
!=
nullptr
&&
!
restore_volume
)
{
float
vol
[
SPA_AUDIO_
MAX_CHANNELS
];
float
vol
[
MAX_CHANNELS
];
for
(
unsigned
i
=
0
;
i
<
channels
;
i
++
)
vol
[
i
]
=
newvol
;
...
...
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