my Syncing works pretty well for the first ~50seconds, but then it slowly drifts off and gets really bad.
Hi S0lll0s,
I picked the track from youtube (
this) and opened it in some random wave editor.
The track starts at 0.175s.
Between 33.424 and 65.692 are exactly 8 sequences, makes 4.0335 seconds per sequence.
Let's assume 8 beats per sequence (which results in 119.003 bpm).
Now I simplified your main loop to the following:
float nextBeat= 0.175f; // start of the track
float secondsPerBeat= 4.0335f / 8.0;
while( true )
{
...
glClear( GL_COLOR_BUFFER_BIT );
musicTime = BASS_ChannelBytes2Seconds( sailMusic, BASS_ChannelGetPosition( sailMusic, BASS_POS_BYTE ) );
if (musicTime >= nextBeat)
{
nextBeat += secondsPerBeat;
callback2();
}
SDL_GL_SwapBuffers();
}
And a green hexagon is flashing to the beat.
Should be possible to get the rest working from here on.
how do I draw "thick" lines in OpenGL?
You call glLineWidth with the desired width.

and make them grow?
