Remarks
Forces the selected sound to generate the SoundDone event when the sound finishes playing.
Note that when a synchronous sound is playing no other sound will be generated by the control.
Syntax
Visual Basic
control.SetSoundSync (index as enumSounds, bSync as integer)
Visual C++
void control.SetSoundSync (long index, BOOL bSync);
Parameter
|
Description
|
|
|
index
|
Numerical value that represents the index of the sound property to change. Supported values are the following:
Mnemonic constant
|
Value
|
Meaning
|
SOUND_DOWN
|
0
|
Changes the SoundDown property
|
SOUND_UP
|
1
|
Changes the SoundUp property
|
SOUND_MOUSEOVER
|
2
|
Changes the SoundMouseOver property
|
SOUND_MOUSEOUT
|
3
|
Changes the SoundMouseOut property
|
|
bSync
|
Boolean flag that determines if the sound will play synchronously or asynchronously. Supported values are the following:
Value
|
Meaning
|
FALSE (default)
|
The sound will play asynchronously and will not generate any event
|
TRUE
|
The sound will play synchronously and will generate an event when done
|
|
|