| Package | artcustomer.maxima.engine |
| Class | public class SFXEngine |
| Inheritance | SFXEngine AbstractCoreEngine flash.events.EventDispatcher |
| Method | Defined By | ||
|---|---|---|---|
Constructor
| SFXEngine | ||
Add new channel at highest index. | SFXEngine | ||
clearChannelsPool():void
Remove all channels stored in the pool. | SFXEngine | ||
destroy():void [override]
Destructor
| SFXEngine | ||
disposeChannelAt(index:int):Boolean
Remove channel at index. | SFXEngine | ||
getChannelAt(index:int):SingleChannel
Get channel at index. | SFXEngine | ||
[static]
Instantiate SFXEngine. | SFXEngine | ||
hasChannelAt(index:int):Boolean
Test channel at index. | SFXEngine | ||
muteAll():void
Mute all channels. | SFXEngine | ||
pauseChannel(index:int = 0):void
Pause channel. | SFXEngine | ||
playSoundOnChannel(sound:Sound, index:int = 0, begin:int = 0, loops:int = 0):void
Play sound on channel. | SFXEngine | ||
playStreamOnChannel(stream:String, index:int = 0, begin:int = 0, loops:int = 0):void
Play sound by stream on channel. | SFXEngine | ||
resumeChannel(index:int = 0):void
Resume channel. | SFXEngine | ||
setPan(pan:Number):void
Set pan on sound. | SFXEngine | ||
setup():void [override]
Entry point. | SFXEngine | ||
setVolume(volume:Number):void
Set volume on sound. | SFXEngine | ||
stopChannel(index:int = 0):void
Stop channel. | SFXEngine | ||
unMuteAll():void
Unmute all channels. | SFXEngine | ||
| SFXEngine | () | Constructor |
public function SFXEngine()Constructor
| addChannel | () | method |
| clearChannelsPool | () | method |
public function clearChannelsPool():voidRemove all channels stored in the pool.
| destroy | () | method |
override public function destroy():voidDestructor
| disposeChannelAt | () | method |
public function disposeChannelAt(index:int):BooleanRemove channel at index.
Parameters
index:int |
Boolean —
|
| getChannelAt | () | method |
public function getChannelAt(index:int):SingleChannelGet channel at index.
Parameters
index:int |
SingleChannel —
|
| getInstance | () | method |
| hasChannelAt | () | method |
public function hasChannelAt(index:int):BooleanTest channel at index.
Parameters
index:int |
Boolean —
|
| muteAll | () | method |
public function muteAll():voidMute all channels.
| pauseChannel | () | method |
public function pauseChannel(index:int = 0):voidPause channel.
Parameters
index:int (default = 0) |
| playSoundOnChannel | () | method |
public function playSoundOnChannel(sound:Sound, index:int = 0, begin:int = 0, loops:int = 0):voidPlay sound on channel.
Parameters
sound:Sound | |
index:int (default = 0) — : 0 is the master channel.
| |
begin:int (default = 0) | |
loops:int (default = 0) |
| playStreamOnChannel | () | method |
public function playStreamOnChannel(stream:String, index:int = 0, begin:int = 0, loops:int = 0):voidPlay sound by stream on channel.
Parameters
stream:String | |
index:int (default = 0) — : 0 is the master channel.
| |
begin:int (default = 0) | |
loops:int (default = 0) |
| resumeChannel | () | method |
public function resumeChannel(index:int = 0):voidResume channel.
Parameters
index:int (default = 0) |
| setPan | () | method |
public function setPan(pan:Number):voidSet pan on sound.
Parameters
pan:Number |
| setup | () | method |
override public function setup():voidEntry point.
| setVolume | () | method |
public function setVolume(volume:Number):voidSet volume on sound.
Parameters
volume:Number — : 0, volume, 1
|
| stopChannel | () | method |
public function stopChannel(index:int = 0):voidStop channel.
Parameters
index:int (default = 0) |
| unMuteAll | () | method |
public function unMuteAll():voidUnmute all channels.