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

BOOL PSoundChannel::PlayFile ( const PFilePath file,
BOOL  wait = TRUE 
) [inline, virtual]

Play a sound file to the open device. If the wait# parameter is TRUE then the function does not return until the file has been played. If FALSE then the sound play is begun asynchronously and the function returns immediately.

Note if the driver is closed of the object destroyed then the sound play is aborted.

Also note that not all possible sounds and sound files are playable by this library. No format conversions between sound object and driver are performed.

Returns:
TRUE if the sound is playing or has played.
Parameters:
fileSound file to play.
waitFlag to play sound synchronously.

Reimplemented in PSoundChannelDirectSound, PSoundChannelWin32, PSoundChannelBeOS, PSoundChannelCoreAudio, PSoundChannelALSA, PSoundChannelESD, PSoundChannelOSS, and PSoundChannelSunAudio.

Definition at line 641 of file sound.h.

References PlayFile().

Referenced by PSound::PlayFile(), and PlayFile().

    { return (baseChannel == NULL) ? FALSE : baseChannel->PlayFile(file, wait); }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index