Resuming paused segment using SetStartPoint doesn't work

I am trying to pause and resume a segment playing a wave file.
I call pPerf->StopEx(pSeg, 0, 0) to pause the segment. I then set the length using SetLength() and set a new startpoint using SetStartPoint(). However, the segment plays from the starting and not at the new start point.
Should I use any flags to modify the segment behaviour. Right now it is set to zero in both StopEx and PlaySegmentEx

Just before calling PlaySegmentEx, I can retrieve the length as 4608 and startpoint as 2759 (both is MUSIC_TIME). Pls. let me know if I need to do something else to get this to work.




Answer this question

Resuming paused segment using SetStartPoint doesn't work

  • VS Developer

    Are you sure this is about DirectX
  • Hyperiest

    yes. DirectMusic provides the IDirectPerformance interface which can be used to load and play segments.

  • Resuming paused segment using SetStartPoint doesn't work