Commit graph

8193 commits

Author SHA1 Message Date
Pavle Goloskokovic
569b395044 Added _volume property docs 2018-01-08 19:34:55 +01:00
Pavle Goloskokovic
1223bba62f Added _mute property docs 2018-01-08 19:34:41 +01:00
Pavle Goloskokovic
dbb4b18e22 Added onBlurPausedSounds property docs 2018-01-08 19:34:23 +01:00
Pavle Goloskokovic
5580ac9239 Implemented volume property setter for HTML5AudioSoundManager class 2018-01-08 19:33:43 +01:00
Pavle Goloskokovic
dd410e2e86 Implemented volume property getter for HTML5AudioSoundManager class 2018-01-08 19:33:23 +01:00
Pavle Goloskokovic
1521a8addc Defining volume property for HTML5AudioSoundManager class 2018-01-08 19:33:10 +01:00
Pavle Goloskokovic
1468febf74 Initializing _volume property used for storing global volume setting 2018-01-08 19:32:41 +01:00
Pavle Goloskokovic
fca5dcd1ab Implemented mute property setter for HTML5AudioSoundManager class 2018-01-08 19:32:20 +01:00
Pavle Goloskokovic
8c5610416a Implemented mute property getter for HTML5AudioSoundManager class 2018-01-08 19:32:09 +01:00
Pavle Goloskokovic
86cccd53ee Defining mute property for HTML5AudioSoundManager class 2018-01-08 19:31:26 +01:00
Pavle Goloskokovic
d3caa815d1 Initializing _mute property used for storing global mute setting 2018-01-08 19:30:42 +01:00
Pavle Goloskokovic
5fcdca241b Implemented destroy method for HTML5AudioSoundManager class 2018-01-08 19:29:16 +01:00
Pavle Goloskokovic
4d768c1c6a Implemented onFocus method for HTML5AudioSoundManager class 2018-01-08 19:29:01 +01:00
Pavle Goloskokovic
06bc5d62fc Implemented onBlur method for HTML5AudioSoundManager class 2018-01-08 19:28:21 +01:00
Pavle Goloskokovic
8dc544667e Initializing onBlurPausedSounds array used for keeping track of sounds paused when game looses focus 2018-01-08 19:27:44 +01:00
Pavle Goloskokovic
197e370c7b Implemented add method for HTML5AudioSoundManager class 2018-01-08 19:26:32 +01:00
Pavle Goloskokovic
df450a4e17 Adding HTML5AudioSoundManager class to index.js 2018-01-08 19:25:26 +01:00
Pavle Goloskokovic
171dac468a Adding HTML5AudioSoundManager class that represents HTML5 Audio implementation of BaseSoundManager 2018-01-08 19:25:11 +01:00
Pavle Goloskokovic
526f6ae58c Releasing references to rate updates objects before releasing reference to rateUpdates array 2018-01-08 19:23:11 +01:00
Pavle Goloskokovic
49e6b5129d No need for context reference, it is taken care of by forEachActiveSound method 2018-01-08 19:22:34 +01:00
Pavle Goloskokovic
a3d50f936d Releasing references to sounds before releasing reference to sound array 2018-01-08 19:21:55 +01:00
Pavle Goloskokovic
9a40226452 Printing audio implementation type in debug header 2018-01-08 18:07:17 +01:00
Pavle Goloskokovic
8972401e5d Resolved a TODO 2018-01-08 18:06:36 +01:00
Pavle Goloskokovic
0cd1ec6819 Saving audio config value passed to game constructor 2018-01-08 17:39:46 +01:00
Pavle Goloskokovic
9035c5e14e Preventing finishedLoading from being called multiple times 2018-01-08 17:38:56 +01:00
Pavle Goloskokovic
ed86d8a58d Resolved a TODO 2018-01-08 17:34:35 +01:00
Pavle Goloskokovic
aa1d071c34 Resolved a TODO 2018-01-08 17:34:26 +01:00
Pavle Goloskokovic
fb9807ec4d Returning HTML5AudioFile when certain conditions are met 2018-01-08 17:33:54 +01:00
Pavle Goloskokovic
51c8312b95 Added a TODO to handle iOS unlocking 2018-01-08 17:32:21 +01:00
Pavle Goloskokovic
2c8097f130 Clearing all events listeners if error occurs 2018-01-08 17:31:53 +01:00
Pavle Goloskokovic
95a348d634 Splitting audio objects initialization and loading to make sure all event listeners are set before any file starts loading 2018-01-08 17:30:49 +01:00
Pavle Goloskokovic
6025688833 Setting event listeners directly as properties values to resolve scope issues 2018-01-08 17:29:14 +01:00
Pavle Goloskokovic
63e3159661 Incrementing filesLoaded before comparison 2018-01-08 17:27:03 +01:00
Pavle Goloskokovic
2c89e628c8 Added properties for keeping track of the loading progress 2018-01-08 17:25:42 +01:00
Pavle Goloskokovic
881d37080b Adding and removing listeners for relevant events 2018-01-08 17:23:50 +01:00
Pavle Goloskokovic
2d7e8c3403 Added onLoad and onError methods to HTML5AudioFile class 2018-01-08 17:17:46 +01:00
Pavle Goloskokovic
96cc433745 Added load method to HTML5AudioFile class 2018-01-08 17:16:15 +01:00
Pavle Goloskokovic
a58b4020b5 Added HTML5AudioFile class for loading audio with html5 audio tag 2018-01-08 17:11:15 +01:00
Pavle Goloskokovic
e421d50996 Merge remote-tracking branch 'origin/master' 2018-01-08 14:04:29 +01:00
Pavle Goloskokovic
b806d66e0d Dispatching seek event after the source has been updated 2018-01-08 14:04:21 +01:00
Richard Davey
c393b86efe Beta 15 2018-01-08 12:47:10 +00:00
Richard Davey
75b9238ede Pointer now records if the last input was from touch or mouse, and doesn't dispatch OUT and OVER events accordingly. Even though this goes against what the DOM does it's a far more common situation in games to ignore them. 2018-01-08 09:58:17 +00:00
Pavle Goloskokovic
a1bd4e4244 Added a TODO to print audio implementation in debug header 2018-01-07 23:50:27 +01:00
Pavle Goloskokovic
4be5209d8a Merge remote-tracking branch 'origin/master' 2018-01-07 23:06:05 +01:00
Pavle Goloskokovic
6fba90be74 Removed webkit check since it is taken care of by polyfill 2018-01-07 23:04:11 +01:00
Pavle Goloskokovic
159ff0f2a2 Removed a resolved TODO 2018-01-07 23:03:36 +01:00
Pavle Goloskokovic
eee47f66ae Some additional docs updates 2018-01-07 22:37:42 +01:00
Pavle Goloskokovic
5ad1dd028e Updated loop property docs 2018-01-07 22:36:57 +01:00
Pavle Goloskokovic
1d42cec0e0 Updated seek property docs 2018-01-07 22:36:44 +01:00
Pavle Goloskokovic
5f2b83adf6 Updated detune property docs 2018-01-07 22:36:31 +01:00