wip: use channel volume as "main" volume

This commit is contained in:
Florian Olk 2024-09-01 14:14:40 +02:00
parent 0a790469a8
commit 34bb742aa2

View file

@ -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);