Trim extraspaces
This commit is contained in:
parent
af51348b09
commit
073d60a51e
2 changed files with 1 additions and 3 deletions
|
@ -14,7 +14,7 @@ void callback(void *_, Uint8 *stream, int taille) {
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
float moyenne_calcul = 0.f;
|
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_calcul += stream16[i] / ((1 << 15) - 1.);
|
||||||
}
|
}
|
||||||
moyenne = fabs(moyenne_calcul / i);
|
moyenne = fabs(moyenne_calcul / i);
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
void cube(int etat) {
|
void cube(int etat) {
|
||||||
static GLuint cube = 0, proc_id = 0;
|
static GLuint cube = 0, proc_id = 0;
|
||||||
static GLclampf rgb[3] = { 0 };
|
static GLclampf rgb[3] = { 0 };
|
||||||
|
|
||||||
static GLfloat musique[3] = {0};
|
static GLfloat musique[3] = {0};
|
||||||
|
|
||||||
switch(etat) {
|
switch(etat) {
|
||||||
|
@ -59,7 +58,6 @@ void cube(int etat) {
|
||||||
if(musique[1] != musique[0]) {
|
if(musique[1] != musique[0]) {
|
||||||
gl4duScalef(s, s, s);
|
gl4duScalef(s, s, s);
|
||||||
}
|
}
|
||||||
printf("Son : %f\n", s);
|
|
||||||
gl4duRotatef(cube_rotation, 0, 1, 0);
|
gl4duRotatef(cube_rotation, 0, 1, 0);
|
||||||
gl4duSendMatrices();
|
gl4duSendMatrices();
|
||||||
gl4dgDraw(cube);
|
gl4dgDraw(cube);
|
||||||
|
|
Reference in a new issue