SoundTransform3D is a convinience class that helps adjust a Soundtransform's volume and pan according
position and distance of a listener and emitter object. See SimplePanVolumeDriver for the limitations
of this method.
emitter:ObjectContainer3D
Implementation public function get emitter():ObjectContainer3D
public function set emitter(value:ObjectContainer3D):void
listener:ObjectContainer3D
Implementation public function get listener():ObjectContainer3D
public function set listener(value:ObjectContainer3D):void
scale:Number
Implementation public function get scale():Number
public function set scale(value:Number):void
soundTransform:SoundTransform
Implementation public function get soundTransform():SoundTransform
public function set soundTransform(value:SoundTransform):void
volume:Number
Implementation public function get volume():Number
public function set volume(value:Number):void
public function SoundTransform3D(emitter:ObjectContainer3D = null, listener:ObjectContainer3D = null, volume:Number = 1, scale:Number = 1000)
Creates a new SoundTransform3D.
Parameters | emitter:ObjectContainer3D (default = null ) — the ObjectContainer3D from which the sound originates.
|
|
| listener:ObjectContainer3D (default = null ) — the ObjectContainer3D considered to be to position of the listener (usually, the camera)
|
|
| volume:Number (default = 1 ) — the maximum volume used.
|
|
| scale:Number (default = 1000 ) — the distance that the sound covers.
|
public function update():void
updates the SoundTransform based on the emitter and listener.
public function updateFromVector3D(v:Vector3D):void
udpates the SoundTransform based on the vector representing the distance and
angle between the emitter and listener.
Parameters
Thu Nov 15 2012, 12:08 PM Z