Remarks
Forces the selected sound to generate the SoundDone event when the sound finish.
Note that when a synchronous sound is playing no other sound will be generated by the control.
Syntax
[Visual Basic]
Public Sub SetSoundSync(nSound as Ctl3d.Sounds, bSync as Bool)
[C#]
public void SetSoundSync(Ctl3d.Sounds nSound, bool bSync);
[C++]
public: void SetSoundSync(Ctl3d.Sounds nSound, bool bSync);
Parameter
|
Description
|
|
|
index
|
Numerical value that represents the index of the sound property to change. Supported values are the following:
Enumerated value
|
Value
|
Meaning
|
Sounds.MouseDown
|
0
|
The sound that occurs when the button is pressed.
|
Sounds.MouseUp
|
1
|
The sound that occurs when the button is released.
|
Sounds.MouseOver
|
2
|
The sound that occurs when the mouse enters the button area
|
Sounds.MouseOut
|
3
|
The sound that occurs when the mouse leaves the button area
|
|
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
|
|
|