1088
Chapter 14: Properties
Sound channels are numbered 1, 2, 3, and so on up to 8. Channels 1 and 2 are the channels that
appear in the Score.
The value of the
volume
property ranges from 0 (mute) to 255 (maximum volume). A value of
255 indicates the full volume set for the machine, as controlled by the Sound object’s
soundLevel
property, and lower values are scaled to that total volume. This property allows several channels to
have independent settings within the available range.
The lower the value of the
volume
sound property, the more static or noise you’re likely to hear.
Using
soundLevel
may produce less noise, although this property offers less control.
To see an example of
volume
used in a completed movie, see the Sound Control movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
This statement sets the volume of sound channel 2 to 130, which is a medium sound level setting:
-- Lingo syntax
sound(2).volume = 130
// JavaScript syntax
sound(2).volume = 130;
See also
Sound Channel
,
soundLevel
volume (Sprite)
Usage
-- Lingo syntax
spriteObjRef
.volume
// JavaScript syntax
spriteObjRef
.volume;
Description
Sprite property; controls the volume of a digital video movie or Windows Media cast member
specified by name or number. The values range from 0 to 256. Values of 0 or less mute the sound.
Values exceeding 256 are loud and introduce considerable distortion.
Example
This statement sets the volume of the QuickTime movie playing in sprite channel 7 to 256,
which is the maximum sound volume:
-- Lingo syntax
sprite(7).volume = 256
// JavaScript syntax
sprite(7).volume = 256;
See also
soundLevel
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...