Hello,
I am trying to get the position (play time) of a sound currently playing.
I am using SoundEffectInstance for now and could not find something to do this in the help or in the forums.
Basically, I'm looking for something similar to IDirectSoundBuffer8::GetCurrentPosition from DirectSound but for XNA GameStudio.
Is it possible? Is there a workaround to get this value? Using something else than SoundEffectInstance?
Of course, I know I can start a timer when I play the sound, but I want very precise synchronization between sound and the gameplay and need a GetCurrentPosition to recover from lags or anything that could delay the sound. The sound being played can also be quite long.
Thanks for your attention,
Dave.
Frozax Games : Mac, PC and soon X360 games (www.frozax.com)
Game Dev Blog : http://www.frozax.com/blog/