340
Chapter 12: Methods
getPlayList()
Usage
-- Lingo syntax
soundChannelObjRef
.getPlayList()
// JavaScript syntax
soundChannelObjRef
.getPlayList();
Description
Sound Channel method; returns a copy of the list of queued sounds for a sound channel.
The returned list does not include the currently playing sound, nor may it be edited directly. You
must use
setPlayList()
.
The playlist is a linear list of property lists. Each property list corresponds to one queued sound
cast member. Each queued sound may specify these properties:
Parameters
None.
Example
The following handler queues two sounds in sound channel 2, starts playing them, and then
displays the playList in the message window. The playlist includes only the second sound queued,
because the first sound is already playing.
-- Lingo syntax
on playMusic
sound(2).queue(member("Chimes"))
sound(2).queue([#member:member("introMusic"), #startTime:3000, \
#endTime:10000, #loopCount:5, #loopStartTime:8000, #loopEndTime:8900])
put(sound(2).getPlayList())
sound(2).play()
end playMusic
Property
Description
#member
The sound cast member to queue. This property must be provided; all others are
optional.
#startTime
The time within the sound at which playback begins, in milliseconds. The default is
the beginning of the sound. See
startTime
.
#endTime
The time within the sound at which playback ends, in milliseconds. The default is
the end of the sound. See
endTime
.
#loopCount
The number of times to play a loop defined with
#loopStartTime
and
#loopEndTime
.
The default is 1. See
loopCount
.
#loopStartTime
The time within the sound to begin a loop, in milliseconds. See
loopStartTime
.
#loopEndTime
The time within the sound to end a loop, in milliseconds. See
loopEndTime
.
#preloadTime
The amount of the sound to buffer before playback, in milliseconds. See
preloadTime
.
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...