Packageartcustomer.maxima.engine.sounds
Classpublic class ChannelFactory
InheritanceChannelFactory Inheritance Object
Implements IDestroyable

ChannelFactory



Public Methods
 MethodDefined By
  
Constructor
ChannelFactory
  
addChannel(completeCallback:Function):SingleChannel
Add new channel at highest index.
ChannelFactory
  
applyMasterVolume(masterVolume:Number):void
Update all channels volume with master volume.
ChannelFactory
  
clearPool():void
Clear pool.
ChannelFactory
  
destroy():void
Destructor.
ChannelFactory
  
disposeChannel(index:int):Boolean
Remove channel at index.
ChannelFactory
  
Get channel at index.
ChannelFactory
  
[static] Instantiate ChannelFactory.
ChannelFactory
  
hasChannel(index:int):Boolean
Test channel at index.
ChannelFactory
Constructor Detail
ChannelFactory()Constructor
public function ChannelFactory()

Constructor

Method Detail
addChannel()method
public function addChannel(completeCallback:Function):SingleChannel

Add new channel at highest index.

Parameters

completeCallback:Function

Returns
SingleChannel
applyMasterVolume()method 
public function applyMasterVolume(masterVolume:Number):void

Update all channels volume with master volume.

Parameters

masterVolume:Number

clearPool()method 
public function clearPool():void

Clear pool.

destroy()method 
public function destroy():void

Destructor.

disposeChannel()method 
public function disposeChannel(index:int):Boolean

Remove channel at index.

Parameters

index:int

Returns
Boolean
getChannel()method 
public function getChannel(index:int):SingleChannel

Get channel at index.

Parameters

index:int

Returns
SingleChannel
getInstance()method 
public static function getInstance():ChannelFactory

Instantiate ChannelFactory.

Returns
ChannelFactory
hasChannel()method 
public function hasChannel(index:int):Boolean

Test channel at index.

Parameters

index:int

Returns
Boolean