User Guide
soundLevel 999
soundKeepDevice
Usage
-- Lingo syntax
_sound.soundKeepDevice
// JavaScript syntax
_sound.soundKeepDevice;
Description
Sound property; for Windows only, determines whether the sound driver unloads and reloads
each time a sound needs to play. Read/write.
The default value of this property is
TRUE, which prevents the sound driver from unloading and
reloading each time a sound needs to play.
You may need to set this property to
FALSE before playing a sound to ensure that the sound device
is unloaded and made available to other applications or processes on the computer after the sound
has finished.
Setting this property to
FALSE may adversely affect performance if sound playback is used
frequently throughout the Director application.
Example
This statement sets the soundKeepDevice property to FALSE:
-- Lingo syntax
_sound.soundKeepDevice = FALSE
// JavaScript syntax
_sound.soundKeepDevice = false;
See also
Sound
soundLevel
Usage
-- Lingo syntax
_sound.soundLevel
// JavaScript syntax
_sound.soundLevel;
Description
Sound property; returns or sets the volume level of the sound played through the computer’s
speaker. Read/write.
Possible values range from 0 (no sound) to 7 (the maximum, default).
In Windows, the system sound setting combines with the volume control of the external speakers.
Thus, the actual volume that results from setting the sound level can vary. Avoid setting the
soundLevel property unless you are sure that the result is acceptable to the user. It is better to set
the individual volumes of the channels and sprites with the Sound Channel object’s volume
property.