XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Playing an xWMA beginning at a fixed time offset using XAudio2?

Last post 19/04/2009 19:27 by GameDevDude. 1 replies.
  • 19/04/2009 8:01

    Playing an xWMA beginning at a fixed time offset using XAudio2?

    I'm playing xWMA files with XAudio2, and I'd like to seek them to an arbitrary time. However, I can only submit them as packets, so I'm not sure how to do start it at a time that isn't a packet boundary. Unfortunately, seeking to the nearest packet isn't good enough in my application because I'm trying to keep several xWMA files in sync together and they have different numbers of bytes decoded at the packet boundaries.

    Presumably there's a way to do it because XACT provides you with the capability (you can prepare a multitrack queue with and prepare it with a fixed time offset), and it's build off of xAudio2, but I'm not sure how to do it.

    Any help would be greatly appreciated!

    Thanks!

    -Dude
  • 19/04/2009 19:27 In reply to

    Re: Playing an xWMA beginning at a fixed time offset using XAudio2?

    Ah, I figured it out. XAUDIO2_BUFFER has a PlayBegin member that you can use to specify an offset into a packet.
Page 1 of 1 (2 items) Previous Next