Provides a wrapper for the SoundTransform object.
Constants
| Name | Value | Description |
|---|---|---|
MAX_VOLUME | 1 | The max volume. |
MIN_VOLUME | 0 | The minimum volume. |
Events
| Name | Type | Description | ||||
|---|---|---|---|---|---|---|
UPDATE | com.google.ads.studio.events.StudioEvent | Dispatches the update event whenever a NetStream instance is associated, to the AudioChannel or the volume is set. The properties of the event object have the following values:
|
Constructors
AudioChannel()Creates a new AudioChannel to manage NetStream or camera audio.
Instance Methods
Defined in com.google.ads.studio.audio:AudioChannel
attachAudio(netStream:flash.net:NetStream)
:
voidAttaches a NetStream object to the AudioChannel.
getVolume()
:
NumberGets the current volume of the SoundTransform object.
mute()
:
voidMute the audio channel.
setVolume(volume:Number)
:
voidSets the volume of the SoundTransform object.
unload()
:
voidDetaches the NetStream from the AudioChannel, nulls the SoundTransform object and the MovieClip it is associated to.
unmute()
:
voidUnmute the audio channel to last known non muted volume.