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.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...