mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
merger: handle monitor mute as well
This commit is contained in:
parent
ce7a8c9538
commit
6c02fd663a
1 changed files with 2 additions and 2 deletions
|
|
@ -1227,9 +1227,9 @@ static int impl_node_process(void *object)
|
|||
for (i = 0; i < this->monitor_count; i++) {
|
||||
float volume;
|
||||
|
||||
volume = this->props.monitor_volumes[i];
|
||||
volume = this->props.monitor_mute ? 0.0f : this->props.monitor_volumes[i];
|
||||
if (this->monitor_channel_volumes)
|
||||
volume *= this->props.channel_volumes[i];
|
||||
volume *= this->props.mute ? 0.0f : this->props.channel_volumes[i];
|
||||
|
||||
handle_monitor(this, src_datas[i], volume, n_samples,
|
||||
GET_OUT_PORT(this, i + 1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue