IDirectMusicPerformance::IsPlaying

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

HRESULT IsPlaying(
  IDirectMusicSegment* pSegment,
  IDirectMusicSegmentState* pSegState
);
 

Parameters

pSegment
The segment to check. If NULL, check only pSegState.
pSegState
The segment state to check. If NULL, check only pSegment.

Return Values

If the method succeeds and either the segment or segment state is playing, the return value is S_OK. If neither is playing, the return value is S_FALSE.

If it fails, the method may return one of the following error values:

E_POINTER
DMUS_E_NO_MASTER_CLOCK

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.