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
[read-write]
Implementation
public function get emitter():ObjectContainer3D
public function set emitter(value:ObjectContainer3D):void
listener:ObjectContainer3D
[read-write]
Implementation
public function get listener():ObjectContainer3D
public function set listener(value:ObjectContainer3D):void
scale:Number
[read-write]Implementation
public function get scale():Number
public function set scale(value:Number):void
soundTransform:SoundTransform
[read-write]Implementation
public function get soundTransform():SoundTransform
public function set soundTransform(value:SoundTransform):void
volume:Number
[read-write]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)
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.
|
Init Parameters
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