The IDirectMusicPerformance::IsPlaying method determines whether a particular segment or segment state is currently playing at the speakers.
HRESULT IsPlaying(
IDirectMusicSegment* pSegment,
IDirectMusicSegmentState* pSegState
);
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 |
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.