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)
:
void
Attaches a NetStream object to the AudioChannel.
getVolume()
:
Number
Gets the current volume of the SoundTransform object.
mute()
:
void
Mute the audio channel.
setVolume(volume:Number)
:
void
Sets the volume of the SoundTransform object.
unload()
:
void
Detaches the NetStream from the AudioChannel, nulls the SoundTransform object and the MovieClip it is associated to.
unmute()
:
void
Unmute the audio channel to last known non muted volume.