Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PSoundChannelDirectSound::HasPlayCompleted (  ) [virtual]

Indicate if the sound play begun with PlayBuffer() or PlayFile() has completed.

Returns:
TRUE if the sound has completed playing.

Reimplemented from PSoundChannel.

Definition at line 924 of file sound_directsound.cxx.

Referenced by WaitForPlayCompletion(), and Write().

{

  DWORD dwStatus;
  if (mAudioPlaybackBuffer != NULL) 
    {

      mAudioPlaybackBuffer->GetStatus (&dwStatus);
      if (dwStatus & DSBSTATUS_PLAYING)  
      return FALSE;

    }
  return TRUE;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index