Main Page | Class List | Class Members

OGL_Library::Sound Class Reference

The class provide plays *.wav and *.mp3 or another format sound on the WinCE or Windows. It wrapped "PlaySound" API to using play sound and supports develop "Voice-Guided Tour" application for PDA.. See more. More...

List of all members.

Public Types

enum  PlaySoundType {
  Sync = 0x0000, Async = 0x0001, NoDefault = 0x0002, Loop = 0x0008,
  Yield = 0x0010, NoWait = 0x00002000
}

Public Member Functions

 Sound (String strFileName)
 Sound (Stream stream)
void Play ()
void Play (PlaySoundType pst)
void Stop ()


Detailed Description

The class provide plays *.wav and *.mp3 or another format sound on the WinCE or Windows. It wrapped "PlaySound" API to using play sound and supports develop "Voice-Guided Tour" application for PDA.. See more.


Member Enumeration Documentation

enum OGL_Library::Sound::PlaySoundType
 

PlaySoundType Sync, Async, NoDefault, Loop, Yield, NoWait.

Enumeration values:
Sync  Synchronous playback of a sound event.
Async  The sound is played asynchronously.
NoDefault  No default sound event is used. If the sound cannot be found.
Loop  The sound plays repeatedly until Play method is called again with the pszSound parameter set to NULL. You must also specify the SND_ASYNC flag to indicate an asynchronous sound event
Yield  The specified sound event will yield to another sound event that is already playing. If a sound cannot be played because the resource needed to generate that sound is busy playing another sound, the function immediately returns FALSE without playing the requested sound.
NoWait  If the driver is busy, return immediately without playing the sound.


Constructor & Destructor Documentation

OGL_Library::Sound::Sound String  strFileName  ) 
 

Play the sound by FileName

Parameters:
strFileName File name.

OGL_Library::Sound::Sound Stream  stream  ) 
 

Play the sound by stream

Parameters:
stream File Stream.


Member Function Documentation

void OGL_Library::Sound::Play  ) 
 

Start play the sound

void OGL_Library::Sound::Play PlaySoundType  pst  ) 
 

Flags for playing the sound.

Parameters:
pst PlaySoundType enum.

void OGL_Library::Sound::Stop  ) 
 

Stop sound.


Generated on Tue Mar 9 03:09:45 2004 for OGL_Library by doxygen 1.3.6