This commit is contained in:
Mylloon 2022-05-19 17:10:04 +02:00
parent d4823a7832
commit f07503e647
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -13,7 +13,7 @@ void callback(void *_, Uint8 *stream, int taille) {
(void)_;
int i = 0;
float moyenne_calcul = 0.f;
double moyenne_calcul = 0.;
for(signed short *stream16 = (signed short *)stream; i < taille / 2; ++i) {
moyenne_calcul += stream16[i] / ((1 << 15) - 1.);
}