PlaySystemSound procedure
|
acUtils
|
type
|
TacSystemSoundType = (stCustom, stAsterisk, stCloseProgram,
|
stCriticalStop, stDefaultSound,
|
stExclamation, stExitWindows,
|
stMaximize, stMenuCommand, stMenuPopup,
|
stMinimize, stNewMailNotification,
|
stOpenProgram, stProgramError, stQuestion,
|
stRestoreDown, stRestoreUp, stStartWindows);
|
|
procedure PlaySystemSound(SndType: TacSystemSoundType;
|
Asynchronous, Looped: Boolean);
|
The PlaySystemSound procedure can be used to play default system sound event, specified in "Sounds" applet of Control Panel.
|
|
SndType | describes the action type, to play Wav-files associated with this action.
|
Asynchronous | specifies whether you would like to play sound asynchronously with main application thread. Set it to True if you don't want to suspend main application thread during playing of the sound.
|
Looped | specifies whether you would like to play the sound continuously. Set it to False to play the sound only once. Otherwise, if you would like to replay the sound continuously use StopSystemSound to terminate the sound.
|
Don't use stCustom SndType. This type can be only used in acWavPlayer component, for playing custom Wav-file uploaded to form. Please see documentation on acWavPlayer component for more information.
|
StopSystemSound procedure and acWavPlayer component.
|