Commit 900b573
authored
feat: add pipewire support for
# Pull Request
## Description
This feature allow to manage volume using native pipewire utilities, if
audioserver is running by PipeWire.
If volume is managed throug Pulse Audio when the actual audio server is
pipewire this leads to audio stream is recreated every time any
parameter is changed:
- muted
- unmuted
- volume changes
This behaviour leads to some inconvenience:
- Any equalizer/filter/etc applied to physical sink is discarded when
stream is recreated
- Waybar crashes on eq discard for some reason
- Virtual sink should be used as workaround
Managing volume natively by pipewire utils solves all mentioned
problems.
## Type of change
- [ ] **Bug fix** (non-breaking change which fixes an issue)
- [x] **New feature** (non-breaking change which adds functionality)
- [ ] **Breaking change** (fix or feature that would cause existing
functionality to not work as expected)
- [ ] **Documentation update** (non-breaking change; modified files are
limited to the documentations)
- [ ] **Technical debt** (a code change that does not fix a bug or add a
feature but makes something clearer for devs)
- [ ] **Other** (provide details below)
## Checklist
- [x] I have read the
[CONTRIBUTING](https://github.com/HyDE-Project/HyDE/blob/master/CONTRIBUTING.md)
document.
- [x] My code follows the code style of this project.
- [x] My commit message follows the [commit
guidelines](https://github.com/HyDE-Project/HyDE/blob/master/COMMIT_MESSAGE_GUIDELINES.md).
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added a changelog entry.
- [ ] I have added necessary comments/documentation to my code.
- [ ] I have added tests to cover my changes.
- [x] I have tested my code locally and it works as expected.
- [ ] All new and existing tests passed.
## Additional context
> [!WARNING]
> I have tested it only on my PC and my laptop, which are both AMD-only
and have pretty similar audio configs. I will appreciate if someone can
test this on different configurationsvolumecontrol.sh (#1316)2 files changed
+77
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | | - | |
87 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
88 | 101 | | |
89 | | - | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
| |||
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
107 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
108 | 126 | | |
109 | 127 | | |
110 | 128 | | |
| |||
128 | 146 | | |
129 | 147 | | |
130 | 148 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
135 | 157 | | |
136 | | - | |
| 158 | + | |
137 | 159 | | |
138 | 160 | | |
139 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
140 | 171 | | |
141 | 172 | | |
142 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
143 | 194 | | |
144 | 195 | | |
145 | 196 | | |
146 | | - | |
| 197 | + | |
147 | 198 | | |
148 | 199 | | |
149 | 200 | | |
| |||
158 | 209 | | |
159 | 210 | | |
160 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
161 | 219 | | |
162 | 220 | | |
163 | 221 | | |
164 | 222 | | |
165 | 223 | | |
166 | | - | |
| 224 | + | |
167 | 225 | | |
168 | 226 | | |
169 | 227 | | |
170 | 228 | | |
171 | | - | |
| 229 | + | |
172 | 230 | | |
173 | 231 | | |
174 | 232 | | |
| |||
0 commit comments