XAudio2 - syncing events with audio

For questions about using Classic.

Post » Sun Jan 06, 2013 4:37 am

Hi, I'm interested in syncing up events with audio, but I can't seem to work out an effective way to do it.

I've been trying to use XAudio2's "Get position" expression - setting that to a variable and then using that variable to manipulate events - but I've noticed that it ignores loops and the number grows for as long as the audio is playing, rather than reverting back to 0 when the audio loops.

Basically, I just want to be able to check how far through a track has played and execute various actions depending on what part of the music is playing. Am I on the right track with the "Get position" expression or is there perhaps a more effective way to do this? The more accurate the better. Thanks for any help :)
B
46
S
16
G
3
Posts: 133
Reputation: 4,955

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests