diff --git a/src/audio.c b/src/audio.c index 778c8f6..db803ee 100644 --- a/src/audio.c +++ b/src/audio.c @@ -14,7 +14,7 @@ void callback(void *_, Uint8 *stream, int taille) { int i = 0; float moyenne_calcul = 0.f; - 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 = fabs(moyenne_calcul / i); diff --git a/src/cube.c b/src/cube.c index 862fafb..d1c2127 100644 --- a/src/cube.c +++ b/src/cube.c @@ -5,7 +5,6 @@ void cube(int etat) { static GLuint cube = 0, proc_id = 0; static GLclampf rgb[3] = { 0 }; - static GLfloat musique[3] = {0}; switch(etat) { @@ -59,7 +58,6 @@ void cube(int etat) { if(musique[1] != musique[0]) { gl4duScalef(s, s, s); } - printf("Son : %f\n", s); gl4duRotatef(cube_rotation, 0, 1, 0); gl4duSendMatrices(); gl4dgDraw(cube);