fix type
This commit is contained in:
parent
d4823a7832
commit
f07503e647
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ void callback(void *_, Uint8 *stream, int taille) {
|
||||||
(void)_;
|
(void)_;
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
float moyenne_calcul = 0.f;
|
double moyenne_calcul = 0.;
|
||||||
for(signed short *stream16 = (signed short *)stream; i < taille / 2; ++i) {
|
for(signed short *stream16 = (signed short *)stream; i < taille / 2; ++i) {
|
||||||
moyenne_calcul += stream16[i] / ((1 << 15) - 1.);
|
moyenne_calcul += stream16[i] / ((1 << 15) - 1.);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue