oh bro ofc
This commit is contained in:
Alexander Medvedev 2026-03-05 21:36:41 +01:00
parent 7248f942e7
commit e125ca19be

View File

@ -143,7 +143,7 @@ const fn abs_max(a: f64, b: f64) -> f64 {
a.abs().max(b.abs())
}
fn to_long(value: f64) -> i64 {
fn to_long(value: f64) -> i64 {
((value.mul_add(0.5, 0.5) * MAX_15_BIT_VALUE).round() as i64).clamp(0, 32766)
}