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

BOOL PSoundChannel::PlaySound ( const PSound sound,
BOOL  wait = TRUE 
) [inline, virtual]

Play a sound 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.

TRUE if the sound is playing or has played.
sound  Sound to play.
wait  Flag to play sound synchronously.

Definition at line 621 of file sound.h.

References PlaySound().

Referenced by PSound::Play(), and PlaySound().

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

Generated by  Doxygen 1.6.0   Back to index