Problem with SetSartPoint in DirectMusic
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!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement