Commit graph

8158 commits

Author SHA1 Message Date
Pavle Goloskokovic
33bc3d8d5c Using checkTouchLocked with seek property 2018-01-17 17:23:20 +01:00
Pavle Goloskokovic
874b3d5bc1 Defined detune property getter 2018-01-17 17:23:04 +01:00
Pavle Goloskokovic
3ff214da59 Defined rate property getter 2018-01-17 17:22:54 +01:00
Pavle Goloskokovic
eb5be4c75d Defined detune property setter to be able to use checkTouchLocked with it 2018-01-17 17:22:30 +01:00
Pavle Goloskokovic
865f8d06ad Defined rate property setter to be able to use checkTouchLocked with it 2018-01-17 17:22:03 +01:00
Pavle Goloskokovic
c2f7795a98 Using checkTouchLocked with volume property 2018-01-17 17:21:07 +01:00
Pavle Goloskokovic
a9a3c3c2a2 Using checkTouchLocked with mute property 2018-01-17 17:20:44 +01:00
Pavle Goloskokovic
22154ceace Using checkTouchLocked with stop method 2018-01-17 17:19:39 +01:00
Pavle Goloskokovic
796f3657ac Using checkTouchLocked with resume method 2018-01-17 17:19:25 +01:00
Pavle Goloskokovic
893882fe95 Using checkTouchLocked with pause method 2018-01-17 17:19:15 +01:00
Pavle Goloskokovic
300ac5b859 Using checkTouchLocked with play method 2018-01-17 17:19:04 +01:00
Pavle Goloskokovic
093f295389 Added touchLockedActionQueue property to HTML5AudioSound class 2018-01-17 17:06:55 +01:00
Pavle Goloskokovic
c4f4fbc79d Passing sound manager touchLocked value to HTML5AudioFile constructor 2018-01-17 17:04:55 +01:00
Pavle Goloskokovic
541cd83688 Using object property instead of local var 2018-01-17 17:04:06 +01:00
Pavle Goloskokovic
81f3b56b0a Added touchLocked argument to HTML5AudioFile class constructor 2018-01-17 17:01:50 +01:00
Pavle Goloskokovic
be7741ed89 Resetting already started sounds before unlocking 2018-01-17 14:13:44 +01:00
Pavle Goloskokovic
0b4a8b8b2d Removed touchstart event listeners since they don't work for unlocking audio 2018-01-17 14:13:13 +01:00
Pavle Goloskokovic
f510f71213 Implemented unlock method for HTML5AudioSoundManager class 2018-01-17 14:12:04 +01:00
Pavle Goloskokovic
4ca73ae362 Removing unlock call since it is now done in BaseSoundManager class 2018-01-17 14:10:54 +01:00
Pavle Goloskokovic
5c118a3a94 audio tag does not support name attribute so setting that value to dataset 2018-01-17 14:10:03 +01:00
Pavle Goloskokovic
196018d04a Updating load progress properties when sound is locked 2018-01-17 14:09:20 +01:00
Pavle Goloskokovic
5720dff5dc onLoad needs to be called from timeout callback in order to not cause issues 2018-01-17 14:08:38 +01:00
Pavle Goloskokovic
e75731df87 Calling onLoad directly if device sound is locked since we are skipping actual loading 2018-01-17 14:07:50 +01:00
Pavle Goloskokovic
ae36cf5729 Skipping calling load method on an audio tag on mobile devices 2018-01-17 14:06:46 +01:00
Pavle Goloskokovic
402aa27ff3 Skipping setting preload attribute and events on an audio tag on mobile devices 2018-01-17 14:05:35 +01:00
Pavle Goloskokovic
b33af6d2aa Calling unlock method in BaseSoundManager class constructor 2018-01-17 14:03:34 +01:00
Pavle Goloskokovic
377ab5a4e9 Defined unlock method on BaseSoundManager class as both implementations use it 2018-01-17 14:03:04 +01:00
Pavle Goloskokovic
63c402517c Handling when WebGL context is falsy and not just null 2018-01-15 12:05:11 +01:00
Pavle Goloskokovic
3664e84e19 Merge remote-tracking branch 'origin/master' 2018-01-15 11:29:55 +01:00
Pavle Goloskokovic
2e60619218 Fixed detecting WebGL support 2018-01-15 11:29:38 +01:00
Michael Hadley
f86298b8d2 Tilemap layers now initialize their alpha from LayerData
This makes it easy to import layer alphas from Tiled
2018-01-14 16:16:47 -06:00
Richard Davey
696643051a Fixed drag events 2018-01-14 21:26:14 +00:00
Pavle Goloskokovic
e8e4a5633d Removed completed TODO 2018-01-14 17:39:29 +01:00
Pavle Goloskokovic
9a4811df32 Emitting loop event when sound loop setting value changes 2018-01-14 17:39:10 +01:00
Pavle Goloskokovic
8b676cf743 Renamed loop event to looped for emitting event when sound has looped 2018-01-14 17:38:59 +01:00
Pavle Goloskokovic
846aefd7c1 Emitting loop event when sound loop setting value changes 2018-01-14 17:38:33 +01:00
Pavle Goloskokovic
8f692b8fb9 Renamed loop event to looped for emitting event when sound has looped 2018-01-14 17:37:52 +01:00
Pavle Goloskokovic
1fe58bc1ef Refactored update method looping and ending logic a bit 2018-01-14 17:32:19 +01:00
Pavle Goloskokovic
2a70eb9c09 Removed completed TODO 2018-01-14 17:23:24 +01:00
Pavle Goloskokovic
ab02e843f3 Checking for loop between two update calls only if loop setting is set to true 2018-01-14 17:23:09 +01:00
Pavle Goloskokovic
4b9c94ebbe Added a TODO to change loop event to looped and emit loop event when loop value changes 2018-01-14 17:22:32 +01:00
Pavle Goloskokovic
919d2d658a Using EventEmitter emit method to dispatch seek update event 2018-01-14 17:21:24 +01:00
Pavle Goloskokovic
dd2bd9695d Using EventEmitter emit method to dispatch volume update event 2018-01-14 17:20:31 +01:00
Pavle Goloskokovic
913c93eca1 Using EventEmitter emit method to dispatch mute update event 2018-01-14 17:20:20 +01:00
Pavle Goloskokovic
1912dd98df Using EventEmitter emit method to dispatch loop event 2018-01-14 17:19:57 +01:00
Pavle Goloskokovic
8ba0c3d39e Using EventEmitter emit method to dispatch ended event 2018-01-14 17:19:37 +01:00
Pavle Goloskokovic
14e7cb4b75 Using EventEmitter emit method to dispatch stop event 2018-01-14 17:18:53 +01:00
Pavle Goloskokovic
ac04061478 Using EventEmitter emit method to dispatch resume event 2018-01-14 17:18:39 +01:00
Pavle Goloskokovic
be03100765 Using EventEmitter emit method to dispatch pause event 2018-01-14 17:18:26 +01:00
Pavle Goloskokovic
d5ffad06aa Using EventEmitter emit method to dispatch play event 2018-01-14 17:18:02 +01:00