Package | artcustomer.maxima.engine.sounds |
Class | public class SingleChannel |
Inheritance | SingleChannel ![]() |
Method | Defined By | ||
---|---|---|---|
Constructor
| SingleChannel | ||
destroy():void
Destructor. | SingleChannel | ||
dispose():void
Dispose channel. | SingleChannel | ||
mute():void
Mute sound. | SingleChannel | ||
pause():void
Pause sound. | SingleChannel | ||
play():void
Play sound. | SingleChannel | ||
playSound(sound:Sound, begin:int = 0, loops:int = 0):void
Play sound with Sound object. | SingleChannel | ||
playStream(stream:String, begin:int = 0, loops:int = 0):void
Play sound with stream URL. | SingleChannel | ||
resume():void
Pause sound. | SingleChannel | ||
setMasterVolume(masterVolume:Number):void
Update channel volume with master volume. | SingleChannel | ||
setPan(pan:Number):void
Set pan on sound. | SingleChannel | ||
setup(loadedCallback:Function):void
Setup / Recycle. | SingleChannel | ||
setVolume(volume:Number):void
Set volume on sound. | SingleChannel | ||
stop():void
Pause sound. | SingleChannel | ||
unMute():void
Unmute sound. | SingleChannel |
Event | Summary | Defined By | ||
---|---|---|---|---|
SingleChannel | ||||
SingleChannel | ||||
SingleChannel | ||||
SingleChannel | ||||
SingleChannel |
SingleChannel | () | Constructor |
public function SingleChannel()
Constructor
destroy | () | method |
public function destroy():void
Destructor.
dispose | () | method |
public function dispose():void
Dispose channel.
mute | () | method |
public function mute():void
Mute sound.
pause | () | method |
public function pause():void
Pause sound.
play | () | method |
public function play():void
Play sound.
playSound | () | method |
public function playSound(sound:Sound, begin:int = 0, loops:int = 0):void
Play sound with Sound object.
Parameters
sound:Sound | |
begin:int (default = 0 )
| |
loops:int (default = 0 )
|
playStream | () | method |
public function playStream(stream:String, begin:int = 0, loops:int = 0):void
Play sound with stream URL.
Parameters
stream:String | |
begin:int (default = 0 )
| |
loops:int (default = 0 )
|
resume | () | method |
public function resume():void
Pause sound.
setMasterVolume | () | method |
public function setMasterVolume(masterVolume:Number):void
Update channel volume with master volume.
Parameters
masterVolume:Number |
setPan | () | method |
public function setPan(pan:Number):void
Set pan on sound.
Parameters
pan:Number |
setup | () | method |
public function setup(loadedCallback:Function):void
Setup / Recycle.
Parameters
loadedCallback:Function |
setVolume | () | method |
public function setVolume(volume:Number):void
Set volume on sound.
Parameters
volume:Number — : [0, 1]
|
stop | () | method |
public function stop():void
Pause sound.
unMute | () | method |
public function unMute():void
Unmute sound.
onPlaySound | Event |
onSoundComplete | Event |
onSoundError | Event |
onSoundID3 | Event |
onStopSound | Event |