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:
Richard Davey
2013-07-16 14:45:08 +01:00
parent d0e886259d
commit 72eb22128f
21 changed files with 2366 additions and 498 deletions
+4
View File
@@ -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.
*