Jump to content
  • Advertisement
Sign in to follow this  

Problem with SetSartPoint in DirectMusic

This topic is 3500 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to implement a “pause” in my audio system. First I stop the segment state and recover its seek pointer, then when the pause is over, I call IDirectMusicSegment8::SetStartPoint and IDirectMusicPerformance8::PlaySegmentEx. This technique works well for the MIDI files but WAV files seem to ignore the new start point and they start playing form the beginning again. According to the documentation its possible to set a music-time length grater than the seek pointer and then call SetStartPoint, or use DirectMusic Producer to create a segment file that has wave and tempo tracks and the loader would set the correct music-time length based on the tempo of the segment. I have tried these two options using static and streaming waves without success. The wave continues playing from the beginning. anyone could help me solve that problem??? Thanks a lot!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!