
612
If the sound is stopped before it reaches the minimum volume, it remains at the level it was
stopped at, causing subsequent playback to be at this volume. Be sure to allow the sound to finish
fading completely.
Note:
You may want to use the
volume
sound property to create a custom sound fade to allow more control over
the actual volume of the channel.
Example
This statement fades out the sound in channel 1 over 5 seconds:
sound(1).fadeOut(5000)
See also
puppetSound
,
sound fadeIn
,
volume (sprite property)
,
fadeTo()
soundKeepDevice
Syntax
the soundKeepDevice
Description
System property; for Windows only, prevents the sound driver from unloading and reloading each
time a sound needs to play. The default value is
TRUE
.
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.
This property can be tested and set.
Example
This statement sets the
soundKeepDevice
property to
FALSE
:
set the soundKeepDevice = FALSE
soundLevel
Syntax
the soundLevel
Description
System property; sets the volume level of the sound played through the computer’s speaker.
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
volume of sound
,
volume of member
, and
volume of sprite
.
These values correspond to the settings in the Macintosh Sound control panel. Using this
property, Lingo can change the sound volume directly or perform some other action when the
sound is at a specified level.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...