IDirectMusicSegmentState

When the IDirectMusicPerformance::PlaySegment method is called, the performance engine generates a segment state object which tracks the state of the playing segment. It also provides the application with a handle to the segment, in the form of the IDirectMusicSegmentState interface, which can be used to track the playback status of the segment, as well as to directly stop it or remove it from the performance using methods of IDirectMusicPerformance.

Segment state objects can also be created by using CoCreateInstance, or by calling IDirectMusicSegment::InitPlay directly, but segment states generated in this manner aren't very useful.

The interface has the following methods:

IDirectMusicSegmentState GetRepeats
  GetSeek
GetSegment
GetStartPoint
GetStartTime

All COM interfaces inherit the IUnknown interface methods. This interface supports the following three methods:

IUnknown AddRef
  QueryInterface
Release

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusici.h.