| Package | artcustomer.maxima.engine.sounds |
| Class | public class SingleChannel |
| Inheritance | SingleChannel flash.events.EventDispatcher |
| 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():voidDestructor.
| dispose | () | method |
public function dispose():voidDispose channel.
| mute | () | method |
public function mute():voidMute sound.
| pause | () | method |
public function pause():voidPause sound.
| play | () | method |
public function play():voidPlay sound.
| playSound | () | method |
public function playSound(sound:Sound, begin:int = 0, loops:int = 0):voidPlay 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):voidPlay sound with stream URL.
Parameters
stream:String | |
begin:int (default = 0) | |
loops:int (default = 0) |
| resume | () | method |
public function resume():voidPause sound.
| setMasterVolume | () | method |
public function setMasterVolume(masterVolume:Number):voidUpdate channel volume with master volume.
Parameters
masterVolume:Number |
| setPan | () | method |
public function setPan(pan:Number):voidSet pan on sound.
Parameters
pan:Number |
| setup | () | method |
public function setup(loadedCallback:Function):voidSetup / Recycle.
Parameters
loadedCallback:Function |
| setVolume | () | method |
public function setVolume(volume:Number):voidSet volume on sound.
Parameters
volume:Number — : [0, 1]
|
| stop | () | method |
public function stop():voidPause sound.
| unMute | () | method |
public function unMute():voidUnmute sound.
| onPlaySound | Event |
| onSoundComplete | Event |
| onSoundError | Event |
| onSoundID3 | Event |
| onStopSound | Event |