syncit ei toimi

This commit is contained in:
Teemu Järvisalo
2025-07-23 22:57:27 +03:00
parent f460f71ab4
commit d33042e30a
4 changed files with 88 additions and 108 deletions

View File

@ -146,7 +146,7 @@ int __cdecl main(int argc, char* argv[])
{ 0.0f, 0.0f, 0.0f }
};
float test[3] = { 0.0f, 0.1f, 0.0f }; // test float of one shape
float test[3] = { 0.0f, 0.0f, 0.0f }; // test float of one shape
int currentShape = 0; // mark location which shape we are currently building
@ -246,20 +246,20 @@ int __cdecl main(int argc, char* argv[])
// if sound has stopped, end shape
// if shape is finished, move shape forward
float captureSync = syncs[5];
float captureSync = 0.0;
if (captureSync >= 0.001f) {
isPlaying = true;
}
if (isPlaying) {
//if (isPlaying) {
vec3ShapeArray[currentShape][1] = captureSync;
vec3ShapeArray[currentShape][2] = vec3ShapeArray[currentShape][2] + shapeIncrement;
test[0] = captureSync; // y position
test[1] = test[1] + shapeIncrement; // x position
test[0] = test[0] + shapeIncrement; // x position
test[1] = captureSync; // y position
test[2] = 0.3f; // length
}
//}
// when note changes -- reset