mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
modules/pipewire: use roundf instead of ceilf for more accuracy
This commit is contained in:
parent
134ae847dc
commit
10fde4dd0a
1 changed files with 2 additions and 2 deletions
|
@ -478,8 +478,8 @@ node_events_param(void *userdata, __attribute__((unused)) int seq, __attribute__
|
|||
total += values[i];
|
||||
|
||||
float base_volume = total / n_values;
|
||||
output_informations->linear_volume = ceilf(base_volume * 100);
|
||||
output_informations->cubic_volume = ceilf(cbrtf(base_volume) * 100);
|
||||
output_informations->linear_volume = roundf(base_volume * 100);
|
||||
output_informations->cubic_volume = roundf(cbrtf(base_volume) * 100);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue