_AudioManager
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
addSound(soundName: *, soundAssetPath: *): * |
|
public |
end() |
|
public |
|
|
public |
removeSound(soundName: *) |
|
public |
setMasterVolume(volume: *) |
|
public |
start() |
Private Methods | ||
private |
_createSoundBufferFromAsset(assetPath: *): * |
Inherited Summary
From class Manager | ||
public |
end() |
|
public |
pause() |
|
public |
start() |
|
public |
unpause() |
|
public |
update() |
Public Constructors
Public Methods
public addSound(soundName: *, soundAssetPath: *): * source
Params:
Name | Type | Attribute | Description |
soundName | * | ||
soundAssetPath | * |
Return:
* |
public playSound(soundName: *, volume: number): boolean source
Params:
Name | Type | Attribute | Description |
soundName | * | ||
volume | number |
|
public removeSound(soundName: *) source
Params:
Name | Type | Attribute | Description |
soundName | * |
public setMasterVolume(volume: *) source
Params:
Name | Type | Attribute | Description |
volume | * |
Private Methods
private _createSoundBufferFromAsset(assetPath: *): * source
Params:
Name | Type | Attribute | Description |
assetPath | * |
Return:
* |