Platform SDK: DirectX

DirectMusicPerformance.IsPlaying

The DirectMusicPerformance.IsPlaying method determines whether a particular segment or segment state is currently playing at the speakers.

object.IsPlaying(segment As DirectMusicSegment, _
    segmentState As DirectMusicSegmentState) As Boolean

Parameters

object
Object expression that resolves to a DirectMusicPerformance object.
segment
DirectMusicSegment to check. If Nothing, check only segmentState.
segmentState
DirectMusicSegmentState state to check. If Nothing, check only segment.

Return Values

If the method succeeds and the requested segment or segment state is playing, the return value is True. If neither is playing, or only one was requested and it is not playing, the return value is False.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DMUS_E_NO_MASTER_CLOCK