mirror of
https://gitlab.freedesktop.org/pipewire/helvum.git
synced 2026-05-04 21:18:01 +02:00
wip: use channel volume as "main" volume
This commit is contained in:
parent
0a790469a8
commit
34bb742aa2
1 changed files with 2 additions and 6 deletions
|
|
@ -366,12 +366,8 @@ mod imp {
|
|||
return;
|
||||
};
|
||||
|
||||
let mut vol = channel_volumes.first().map(|x| *x);
|
||||
if vol.is_none() {
|
||||
vol = volume;
|
||||
}
|
||||
if let Some(vol) = vol {
|
||||
node.set_node_volume(vol as f64);
|
||||
if let Some(vol) = channel_volumes.first() {
|
||||
node.set_node_volume((vol * volume.to_owned().unwrap_or(1.0)) as f64)
|
||||
}
|
||||
if let Some(mute) = mute {
|
||||
node.set_mute(mute);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue