Sound and Synchronization
323
Using sound in Windows
The following issues are specific to managing sound for Windows:
•
In Windows, a sound that is already playing in either sound channel overrides the sound in a
QuickTime or AVI video or in a Flash movie. It also prevents the video sound from playing
even after the sound in the sound channel stops. After the sound in a digital video starts,
however, it overrides a sound in either sound channel.
•
To mix QuickTime audio tracks with internal Director sounds, use the
soundDevice
system
property to specify QT3Mix or install the Microsoft DirectSound sound driver software
version 5.0 or later (available from www.microsoft.com), and use the
soundDevice
property to
specify DirectSound..See
soundDevice
in the Lingo Dictionary. (Windows NT4 does not
support DirectSound 5.) Check the Director Support Center at www.macromedia.com/
support/director/ for the latest developments related to this issue.
•
The default number of sounds that Director can mix in Windows is eight. This number can
be decreased by modifying the value for MixMaxChannels in the Director.ini file in the
Director folder.
Playing sounds with Lingo
Lingo lets you play and control sounds regardless of the settings in the Score. You can use Lingo
to play sounds, turn them on and off, and play external sounds that aren’t cast members. Using
Lingo to play sounds lets you control the exact timing of when sounds start and stop. Lingo also
lets you play only part of a sound cast member or play several sounds in succession without
interruption.
Sounds played by Director play at the volume that is set in the computer’s sound level control.
You can use Lingo to modify the computer’s sound level to suit the needs of your movie or to
modify the volume of the sound channel.
You can also use Lingo to control and stream Shockwave Audio. See “Playing Shockwave Audio
and MP3 audio with Lingo” on page 327.
Playing sound cast members
After you import a sound as a cast member, you can control many aspects of how the sound plays.
To play sound cast members regardless of the settings in the Score:
•
Use the
queue()
and
play()
functions. The
queue()
function loads the sound into the
Director RAM buffer so that it can be play immediately when called. The
play()
command
starts the sound playing. If you omit the
queue()
function, the sound might not play
immediately when called. See
queue()
and
play() (sound)
in the Lingo Dictionary.
The following statements load the sound called Siren into RAM and start it playing in
sound channel 1:
sound(1).queue(member("Siren"))
sound(1).play()
To queue more than one sound to play in succession:
•
Use the
queue()
function to list sounds in the order you want them to play. If you queue them
before they play, Director plays the sounds with no pauses between the sounds. After the
sounds are queued, you need only one
play()
command.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...