Jump to content
  • Advertisement
Sign in to follow this  
charlesW

Problem with SetSartPoint in DirectMusic

This topic is 3413 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!