Make S16 to F32 sample conversion less magical
@@ -45,7 +45,7 @@ where
packet
.data
.iter()
- .map(|sample| ((*sample as f64 + 0.5) / (0x7FFF as f64 + 0.5)) as f32)
+ .map(|sample| ((*sample as f64 + 0.5) / (std::i16::MAX as f64 + 0.5)) as f32)
.collect(),
)));
}
