mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
channelmix: leave volume unchanged for unknown channel volumes
When we get an unknown number of channels, don't do anything, like it used to be.
This commit is contained in:
parent
8a4091f578
commit
a30b335beb
1 changed files with 1 additions and 1 deletions
|
|
@ -540,7 +540,7 @@ static void impl_channelmix_set_volume(struct channelmix *mix, float volume, boo
|
|||
mix->matrix[i][j] = mix->matrix_orig[i][j] * volumes[i];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if (n_channel_volumes == 0) {
|
||||
for (i = 0; i < dst_chan; i++) {
|
||||
for (j = 0; j < src_chan; j++) {
|
||||
mix->matrix[i][j] = mix->matrix_orig[i][j] * vol;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue