mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
SoundManager overhaul nearly finished. Proper Web Audio / Audio tag split, working across desktop and mobile. Includes iOS touch unlock restriction handling, auto decoding, global volume management, audio sprite support (for both web audio and audio tags) and playhead monitoring.
This commit is contained in:
@@ -94,6 +94,10 @@ module Phaser {
|
||||
return <Sprite> this._world.group.add(new Sprite(this._game, x, y, key, frame, bodyType));
|
||||
}
|
||||
|
||||
public audio(key: string, volume?: number = 1, loop?: bool = false) {
|
||||
return <Sound> this._game.sound.add(key, volume, loop);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Sprite with the physics automatically created and set to DYNAMIC. The Sprite position offset is set to its center.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user