mixing_macros.c: Fix integer division

Use literal `0.5` instead of integer division.
This commit is contained in:
Johan Mattsson 2024-12-14 00:58:27 +01:00 committed by GitHub
parent f1483e22bb
commit fd21af445a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -475,7 +475,7 @@ void mixing_macro_downmix(VGMSTREAM* vgmstream, int max /*, mapping_t output_map
channel_mapping_t input_mapping, output_mapping;
const double vol_max = 1.0;
const double vol_sqrt = 1 / sqrt(2);
const double vol_half = 1 / 2;
const double vol_half = 0.5;
double matrix[16][16] = {{0}};