XAudio2 - syncing events with audio

This forum is currently in read-only mode.
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • 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 :)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)