Hi there, i dont know if this is the right place to post this, but there is no SDL forum so...
ok my problem is that im using this code to get a sound after another:
the only problem is that the time between the sounds should be constant and it isnt, the sounds delay some time and thats not good, because i need TOTAL PRECISION.Code:if ((SDL_GetTicks()-timing) >= (60000/y)) { Mix_PlayChannel(-1,clap,0); timing=SDL_GetTicks(); }
How can i solve this?? help pls.
BTW: i believe the problem is infact the timing and not the sound... cause when i if ((SDL_GetTicks()-timing) == (60000/y)) do this the sound never plays, so i can i set the time delay (Im not talking about SDL_Delay() of course), so it would be exact??



LinkBack URL
About LinkBacks


