The Table below lists the properties stored in the Sound List. Note that some properties cannot be set.
Information Stored in Sound List |
Property |
Data Type |
Meaning |
Get |
Set |
name |
string |
name of the sound |
X |
X |
source |
string |
where the sound is from ("file", "RAM" or "member") |
X |
|
format |
string |
sound file format |
X |
|
length |
integer |
length of sound in milliseconds |
X |
|
position |
integer |
current playback position of sound in milliseconds. Property will be 0 unless sound is currently playing. |
X |
|
depth |
integer |
sample bit depth of the sound, for instance 8 or 16 |
X |
|
rate |
integer |
sample rate of the sound, for example 22050 |
X |
|
volume |
integer |
playback volume of the sound in range 0 - 255. The volume of the Director sound channel this sound plays back in will be set to this value. |
X |
X |
channel |
integer |
playback channel of the sound (0 if not playing) |
X |
|
numChannels |
integer |
number of channels |
X |
|