Microsoft DirectX 8.1 (C++)

IDirectMusicSegmentState8

Represents a playing instance of a segment. When the IDirectMusicPerformance8::PlaySegment or IDirectMusicPerformance8::PlaySegmentEx method is called, the performance engine generates a segment-state object that tracks the state of the playing segment. It also provides the application with a handle to the segment, in the form of the IDirectMusicSegmentState8 interface, which can be used to track the playback status of the segment. This method can also be used directly to stop playback or remove the segment from the performance, using methods of IDirectMusicPerformance8.

IDirectMusicSegmentState8 supersedes IDirectMusicSegmentState and adds new methods.

In addition to the methods inherited from IUnknown, the IDirectMusicSegmentState8 interface exposes the following methods.

Method Description
GetObjectInPath Retrieves an interface for an object in the audiopath on which this segment state is playing.
GetRepeats Returns the number of times that the looping portion of the segment is set to repeat.
GetSeek Retrieves the seek pointer in the segment state.
GetSegment Returns a pointer to the segment that owns this segment state.
GetStartPoint Returns the offset into the segment at which play will begin or began.
GetStartTime Gets the performance time at which the segment started or will start playing.
SetTrackConfig Sets the configuration settings of a track.

Requirements

  Header: Declared in dmusici.h.