Jump to content


DirectMusic Segment pausing


1 reply to this topic

#1 sheepdonkey

    New Member

  • Members
  • Pip
  • 1 posts

Posted 26 April 2005 - 09:32 AM

Hi,

I'm having a problem thats driving me mad. Could anyone tell me if they have sucessfully paused Direct music segments. The segments are loaded from wav files.

I've been playing around with the example function given by microsoft:

http://msdn.microsoft.com/library/default....ingsegments.asp

but have had no joy.

I can restart the segment playing from the start of the wav file but never from where I stopped it playing?

Thanks for any help

#2 bladder

    DevMaster Staff

  • Moderators
  • 1057 posts

Posted 27 April 2005 - 12:19 AM

Havent used direct music in quite a while so Im a bit rusty, but what are you doing to pause? IIRC you have to get the current MUSIC_TIME from the perfromance object and then set that time as the starting position in the segment you want to pause (after you stop the segment of course). Then the next time you play the segment it starts from wherever it was...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users