Adobe ATMOSPHERE User Manual page 278

Table of Contents

Advertisement

266
APPENDIX E
Properties
active
Is the sound playing?
// Pause the wind
windSound.active = false;
far
The distance beyond which the sound will not be audible.
windSound.far = 50.;
near
The distance within which the sound will always be at maximum value. For each additional multiple of
minDistance, the sound loudness will decrease by half.
windSound.near = 2.5;
position
The absolute position vector of the sound in the world or null if the sound is ambient. When switching from
ambient to positional or vice versa, you must call play() to restart the sound in the new mode.
// Wind sounds coming from 'outside'
windSound.position = window.position;
repeats
How many times should the sound repeats (0 = forever). Cannot be changed while the sound is playing.
// knockSound.play() plays knock knock knock!
knockSound.repeat = 3;
URL
The URL from which the sound was created (translated to an absolute URL).
chat.print("Now playing: " + windSound.URL);
volume
The (maximum) volume of the sound, from 0 to 1.
windSound.volume = .5;
Methods
play()
Plays the sound from the begining.
windSound.play();
stop()
Stops the sound from playing.

Advertisement

Table of Contents
loading

Table of Contents