Commit graph

817 commits

Author SHA1 Message Date
Pavle Goloskokovic
f89a11793f Initializing lockedActionsQueue in constructor 2018-04-21 19:58:52 +02:00
Richard Davey
6626fae27d eslint fix 2018-04-20 14:03:06 +01:00
Richard Davey
1185586b23 Web Audio context.close now picks up the Promise. 2018-04-20 14:01:57 +01:00
Richard Davey
18585de81d Lots of jsdoc fixes 2018-04-16 14:43:24 +01:00
Pavle Goloskokovic
ee5c56cdc3 Instantiating lockedActionsQueue only when used 2018-04-14 18:56:36 +02:00
Pavle Goloskokovic
44a377f83c Using tag data for checking if the sound is locked instead of global flag 2018-04-14 18:55:52 +02:00
Pavle Goloskokovic
e86e09a6b3 In an edge case if a marker has duration set to 0 (weird :P) we don't want to update sound duration 2018-04-14 18:55:02 +02:00
Pavle Goloskokovic
920e083a8a Updating sound duration only if it is not set yet (equal to 0) 2018-04-14 18:54:01 +02:00
Pavle Goloskokovic
d664a7d4a6 Marking all locked audio tags as unlocked after loading finishes 2018-04-14 18:52:43 +02:00
Pavle Goloskokovic
5efa219adc Removed redundant condition 2018-04-14 18:51:21 +02:00
Pavle Goloskokovic
2167654009 Skipping unlocking logic if there are no locked tags 2018-04-14 18:50:28 +02:00
Pavle Goloskokovic
9125f559c2 Collecting only locked audio tags for unlocking 2018-04-14 18:47:39 +02:00
Pavle Goloskokovic
43e3dc424e Renamed allTags to lockedTags 2018-04-14 18:00:23 +02:00
Pavle Goloskokovic
04c842f749 Checking if audio is locked each time unlock method is called and skipping it in case it is not 2018-04-14 17:51:31 +02:00
Pavle Goloskokovic
c2d661f600 Unlocking Web Audio sound manager immediately in its constructor 2018-04-14 17:48:55 +02:00
Pavle Goloskokovic
403f5b3e33 Not unlocking sound manager by default in base class 2018-04-14 17:48:16 +02:00
Richard Davey
c8bbea552d Fixed issue in HTMLAudioSound where mute would get into a recursive loop. 2018-04-13 12:53:03 +01:00
Hua
cd42ce981a Add destroy event of sound object
Add destroy event of sound object
2018-04-11 16:29:29 +08:00
Richard Davey
5c89c9900c BaseSound.config now contains all defaults. Fix #3525 2018-04-09 14:09:04 +01:00
Richard Davey
d1788d8a4c Updated jsdocs 2018-04-07 15:58:08 +01:00
Richard Davey
f5373b2dee jsdoc fixes 2018-03-29 13:23:44 +01:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Richard Davey
2868b8b588 Added new chainable methods: setRate, setMute, setVolume, setSeek, setDune 2018-03-28 14:14:07 +01:00
Richard Davey
cfab72aef4 Tidying up formatting 2018-03-28 14:13:40 +01:00
Richard Davey
ff9dfc1f9d Fixed event names 2018-03-28 14:13:30 +01:00
Richard Davey
a76b9a1827 BaseSoundManager.rate and BaseSoundManager.detune would incorrectly called setRate on its sounds, instead of calculateRate. 2018-03-28 14:12:37 +01:00
Richard Davey
dcbc81e6b2 Remove un-used properties and setters 2018-03-28 14:12:16 +01:00
Richard Davey
d78a9d097f eslint fixes 2018-03-22 13:22:23 +00:00
Richard Davey
c0ec42dc2b Added setRate, setDetune and renamed setRate to calculateRate 2018-03-21 16:43:08 +00:00
Richard Davey
0ef92e1172 Merge branch 'pr/3439' 2018-03-21 16:06:56 +00:00
Richard Davey
eb10a0121a Added new methods to NoAudio 2018-03-21 14:56:08 +00:00
Richard Davey
2433844cd3 Added setVolume and setMute 2018-03-21 14:54:23 +00:00
Richard Davey
645c03f2e9 Added setRate and setDetune methods 2018-03-21 14:40:07 +00:00
orblazer
90cf919b10 Fix "object" types on Sound and Time 2018-03-21 15:02:10 +01:00
orblazer
e60d573912 Fix "object" types in Actions 2018-03-20 23:36:41 +01:00
orblazer
9375bb0530 Fix multiple types on Tilemaps 2018-03-20 16:11:33 +01:00
orblazer
4cff464555 Fix nullable types 2018-03-20 15:36:03 +01:00
orblazer
fa13b597e3 Add more callbacks 2018-03-19 23:08:05 +01:00
Richard Davey
3eef3213be Spacing 2018-03-19 16:34:39 +00:00
Richard Davey
05a4385cd7 jsdoc fixes 2018-03-16 17:29:39 +00:00
Richard Davey
acf88f5aa5
Merge pull request #3313 from samme/feature/playCatchPromise
Warn if HTML5AudioSound#audio fails to play
2018-03-05 21:58:16 +00:00
Richard Davey
23285896c0 The HTML5 Sound Manager would unlock the Sound API on a touch event but only if the audio files were loaded in the first Scene, if they were loaded in a subsequent Scene the audio system would never unlock. It now unlocks only if there are audio files in the cache. Fix #3311 2018-03-05 13:39:08 +00:00
samme
983772a2fa Warn if HTML5AudioSound#audio fails to play
#3309
2018-03-03 14:29:14 -08:00
Pavle Goloskokovic
e0b85dd3f2 Updated forEachActiveSound method docs to make scope param optional 2018-02-23 15:27:40 +01:00
Richard Davey
df341be520 Removed local properties that were overwritten by the getters / setters 2018-02-22 01:26:36 +00:00
Richard Davey
fe5bd7e6bb Fixed jsdoc errors 2018-02-21 22:51:05 +00:00
Pavle Goloskokovic
b39f4fcfa1 Fixes #3238 2018-02-19 16:17:06 +01:00
Pavle Goloskokovic
fe9951216b Calling base class destroy method only after cleaning up all Web Audio related stuff 2018-02-18 21:52:51 +01:00
Pavle Goloskokovic
ae89750610 Removed redundant docs 2018-02-18 21:38:04 +01:00
Pavle Goloskokovic
812cbbff9f Removed redundant docs 2018-02-18 21:37:23 +01:00
Pavle Goloskokovic
7b9af8691a Fixed add method docs 2018-02-18 21:36:39 +01:00
Pavle Goloskokovic
c3313ef6e5 Fixed class docs 2018-02-18 21:35:39 +01:00
Pavle Goloskokovic
631e6cdf59 Removed redundant docs 2018-02-18 21:24:49 +01:00
Pavle Goloskokovic
1046991e66 Removed redundant docs 2018-02-18 21:24:29 +01:00
Pavle Goloskokovic
81bebfd8c1 Removed redundant docs 2018-02-18 21:24:05 +01:00
Pavle Goloskokovic
ae890eca8a Removed redundant docs 2018-02-18 21:23:30 +01:00
Pavle Goloskokovic
94859c6f99 Removed redundant docs 2018-02-18 21:23:15 +01:00
Pavle Goloskokovic
0b377a34d6 Fixed update method docs, ESLint fix 2018-02-18 21:22:49 +01:00
Pavle Goloskokovic
a08dc5ef64 ESLint fix for playCatchPromise method 2018-02-18 21:21:42 +01:00
Pavle Goloskokovic
1e08945173 Fixed pickAudioTag method docs 2018-02-18 21:20:49 +01:00
Pavle Goloskokovic
c745e096ad Fixed pickAndPlayAudioTag method docs 2018-02-18 21:20:21 +01:00
Pavle Goloskokovic
b607251e77 Fixed stop method docs 2018-02-18 21:20:00 +01:00
Pavle Goloskokovic
5010755aea Fixed resume method docs 2018-02-18 21:19:44 +01:00
Pavle Goloskokovic
7fd6ce95c3 Fixed pause method docs 2018-02-18 21:19:16 +01:00
Pavle Goloskokovic
ebd23f9ae2 Fixed play method docs 2018-02-18 21:18:45 +01:00
Pavle Goloskokovic
0d20a413a7 Fixed class docs 2018-02-18 21:18:09 +01:00
Pavle Goloskokovic
735394bc84 ESLint fix 2018-02-18 21:13:55 +01:00
Pavle Goloskokovic
e6616ec484 Fixed play method docs 2018-02-18 21:13:18 +01:00
Pavle Goloskokovic
1d373cb91e ESLint fix 2018-02-18 21:12:34 +01:00
Pavle Goloskokovic
afbbd7a724 ESLint fix 2018-02-18 21:11:56 +01:00
Pavle Goloskokovic
9af39924ca Updated sounds property docs, ESLint fix 2018-02-18 21:10:37 +01:00
Pavle Goloskokovic
e9ef90da40 ESLint fix 2018-02-18 21:09:14 +01:00
Pavle Goloskokovic
fcad5b12d2 Removed redundant docs 2018-02-18 20:38:57 +01:00
Pavle Goloskokovic
41cf6a2584 Removed redundant docs 2018-02-18 20:38:38 +01:00
Pavle Goloskokovic
ec51794197 Removed redundant docs 2018-02-18 20:38:04 +01:00
Pavle Goloskokovic
4969349f23 Removed redundant docs 2018-02-18 20:37:53 +01:00
Pavle Goloskokovic
ae2120b36a Removed redundant docs, eslint fix 2018-02-18 20:37:37 +01:00
Pavle Goloskokovic
dd9d769061 Removed redundant docs, eslint fix 2018-02-18 20:37:27 +01:00
Pavle Goloskokovic
2ec0f4f5c5 Removed redundant docs 2018-02-18 20:37:12 +01:00
Pavle Goloskokovic
c140e2e40b Removed redundant docs 2018-02-18 20:36:59 +01:00
Pavle Goloskokovic
06d8a21d3a Removed redundant docs 2018-02-18 20:36:16 +01:00
Pavle Goloskokovic
4dbb8a1dee Removed redundant docs 2018-02-18 20:36:04 +01:00
Pavle Goloskokovic
c5981812e2 Removed redundant docs 2018-02-18 20:35:53 +01:00
Pavle Goloskokovic
19bec4d832 Removed redundant docs 2018-02-18 20:35:35 +01:00
Pavle Goloskokovic
8850435ed3 Removed redundant docs 2018-02-18 20:35:14 +01:00
Pavle Goloskokovic
03a659a9e2 Removed redundant docs 2018-02-18 20:35:02 +01:00
Pavle Goloskokovic
e676d264fa Removed redundant docs 2018-02-18 20:34:49 +01:00
Pavle Goloskokovic
0f6aa55859 Removed redundant docs 2018-02-18 20:34:37 +01:00
Pavle Goloskokovic
67fd912c1f Fixed class docs 2018-02-18 20:34:16 +01:00
Pavle Goloskokovic
d7f25fb363 Removed redundant docs 2018-02-18 20:25:22 +01:00
Pavle Goloskokovic
b92f958a4f Removed redundant docs 2018-02-18 20:25:00 +01:00
Pavle Goloskokovic
4efd588123 Removed redundant docs 2018-02-18 20:24:44 +01:00
Pavle Goloskokovic
5c631d8b8e Removed redundant docs 2018-02-18 20:24:31 +01:00
Pavle Goloskokovic
a733ce8054 Removed redundant docs, eslint fix 2018-02-18 20:24:18 +01:00
Pavle Goloskokovic
8cf45cdc7e Removed redundant docs, eslint fix 2018-02-18 20:24:05 +01:00
Pavle Goloskokovic
06fba3b6c7 Removed redundant docs, eslint fix 2018-02-18 20:23:55 +01:00
Pavle Goloskokovic
3bcf936347 Fixed play method docs, eslint fix 2018-02-18 20:23:31 +01:00
Pavle Goloskokovic
7522e8613f Removed redundant docs 2018-02-18 20:23:15 +01:00
Pavle Goloskokovic
8945fa798e Fixed play method docs 2018-02-18 20:23:02 +01:00
Pavle Goloskokovic
43eec1c43c Removed redundant docs 2018-02-18 20:22:52 +01:00
Pavle Goloskokovic
98fdfde972 Removed redundant docs 2018-02-18 20:22:39 +01:00
Pavle Goloskokovic
bb7909b7f0 Removed redundant docs 2018-02-18 20:22:27 +01:00
Pavle Goloskokovic
5a34d1ae2c Removed redundant docs 2018-02-18 20:22:17 +01:00
Pavle Goloskokovic
870f1d95a5 Removed redundant docs 2018-02-18 20:22:07 +01:00
Pavle Goloskokovic
d9af59c72e Removed redundant docs 2018-02-18 20:21:57 +01:00
Pavle Goloskokovic
daeba568b9 Fixed play method docs 2018-02-18 20:21:42 +01:00
Pavle Goloskokovic
05581a4c49 Removed redundant docs 2018-02-18 20:21:29 +01:00
Pavle Goloskokovic
56641fa7ee Removed redundant docs 2018-02-18 20:21:14 +01:00
Pavle Goloskokovic
fe782073cd Removed redundant docs 2018-02-18 20:20:58 +01:00
Pavle Goloskokovic
bb4c8404d2 Removed redundant docs 2018-02-18 20:20:45 +01:00
Pavle Goloskokovic
cf0732a599 Removed redundant docs 2018-02-18 20:20:29 +01:00
Pavle Goloskokovic
455579a427 Removed redundant docs 2018-02-18 20:20:11 +01:00
Pavle Goloskokovic
146c998ff7 Removed redundant docs 2018-02-18 20:19:46 +01:00
Pavle Goloskokovic
7e5b680e3c Removed redundant docs 2018-02-18 20:19:31 +01:00
Pavle Goloskokovic
6d0ec24aa6 Removed redundant docs 2018-02-18 20:18:57 +01:00
Pavle Goloskokovic
19384cb914 Fixed class docs 2018-02-18 20:18:41 +01:00
Pavle Goloskokovic
87f2d4bf0d Removed redundant docs 2018-02-18 20:03:37 +01:00
Pavle Goloskokovic
5131bd6571 Removed redundant docs 2018-02-18 20:03:21 +01:00
Pavle Goloskokovic
3b6a406e6d Fixed add method docs 2018-02-18 20:02:57 +01:00
Pavle Goloskokovic
e018be1d65 Removed redundant docs 2018-02-18 20:02:22 +01:00
Pavle Goloskokovic
9ce14d62be Fixed destination property docs 2018-02-18 20:02:06 +01:00
Pavle Goloskokovic
9550d6f9fe Fixed masterVolumeNode property docs 2018-02-18 20:01:45 +01:00
Pavle Goloskokovic
12efd5da3e Fixed masterMuteNode property docs 2018-02-18 20:01:29 +01:00
Pavle Goloskokovic
89eaea2e8e Fixed context property docs 2018-02-18 20:01:01 +01:00
Pavle Goloskokovic
18588efcc7 Removed redundant docs 2018-02-18 19:35:53 +01:00
Pavle Goloskokovic
8760c39beb Removed redundant docs 2018-02-18 19:35:36 +01:00
Pavle Goloskokovic
75fb69ff32 Removed redundant docs 2018-02-18 19:34:57 +01:00
Pavle Goloskokovic
2fb6590da3 Removed redundant docs 2018-02-18 19:34:39 +01:00
Pavle Goloskokovic
124722e27a ESLint fix 2018-02-18 19:34:13 +01:00
Pavle Goloskokovic
a0098a2994 Fixed play method docs 2018-02-18 19:33:30 +01:00
Pavle Goloskokovic
0ecda6b08d Removed redundant docs 2018-02-18 19:32:57 +01:00
Pavle Goloskokovic
c25345c2d5 Removed redundant docs 2018-02-18 19:32:41 +01:00
Pavle Goloskokovic
97b3724762 Fixed hasLooped property docs 2018-02-18 19:31:57 +01:00
Pavle Goloskokovic
650cc1c395 Fixed hasEnded property docs 2018-02-18 19:31:41 +01:00
Pavle Goloskokovic
baaa92c62d Fixed rateUpdates property docs 2018-02-18 19:31:25 +01:00
Pavle Goloskokovic
a20095389d Fixed loopTime property docs 2018-02-18 19:31:02 +01:00
Pavle Goloskokovic
7b3f457378 Fixed startTime property docs 2018-02-18 19:30:44 +01:00
Pavle Goloskokovic
919ed923ee Fixed playTime property docs 2018-02-18 19:30:24 +01:00
Pavle Goloskokovic
eeeeea71ac Fixed volumeNode property docs 2018-02-18 19:30:10 +01:00
Pavle Goloskokovic
a13c6b778e Fixed muteNode property docs 2018-02-18 19:29:52 +01:00
Pavle Goloskokovic
7db6ac48b3 Fixed loopSource property docs 2018-02-18 19:29:36 +01:00
Pavle Goloskokovic
0137e18d7b Fixed source property docs 2018-02-18 19:29:18 +01:00
Pavle Goloskokovic
5f18bb263b Fixed constructor docs 2018-02-18 19:28:55 +01:00
Pavle Goloskokovic
a50f7adb1c Reverted type changes 2018-02-18 19:12:16 +01:00
Pavle Goloskokovic
6a241358c4 Reverted type changes 2018-02-18 19:12:04 +01:00
Pavle Goloskokovic
07263863a7 Removed duplicate docs 2018-02-18 17:22:07 +01:00
Pavle Goloskokovic
7939edb8b4 Removed duplicate docs 2018-02-18 17:21:54 +01:00
Pavle Goloskokovic
3c9542f565 Fixed remove method docs 2018-02-18 17:21:11 +01:00
Pavle Goloskokovic
91d40a9531 Fixed playAudioSprite method docs 2018-02-18 17:20:42 +01:00
Pavle Goloskokovic
b03bc3e3af Fixed play method docs 2018-02-18 17:20:09 +01:00
Pavle Goloskokovic
3f201121f8 Removed unnecessary docs 2018-02-18 17:19:43 +01:00
Pavle Goloskokovic
24f5de4c5c Fixed addAudioSprite method docs 2018-02-18 17:19:24 +01:00
Pavle Goloskokovic
af76f7f9f1 Added docs type definition for audiosprite sound object 2018-02-18 17:18:55 +01:00
Pavle Goloskokovic
5e41c48b3d Fixed add method docs 2018-02-18 17:18:13 +01:00
Pavle Goloskokovic
cb939cc7d8 Fixed unlocked property docs 2018-02-18 17:17:04 +01:00
Pavle Goloskokovic
8d55a4aeb4 Fixed locked property docs 2018-02-18 17:16:46 +01:00
Pavle Goloskokovic
3faaf28596 Fixed sounds property docs 2018-02-18 17:16:19 +01:00
Pavle Goloskokovic
472da3dc22 Updated docs 2018-02-18 16:07:06 +01:00
Pavle Goloskokovic
f8ac9dcabb Updated docs 2018-02-18 16:06:40 +01:00
Pavle Goloskokovic
d637f04caf Removed duplicate docs 2018-02-18 15:59:43 +01:00
Pavle Goloskokovic
d352363424 Removed duplicate docs 2018-02-18 15:58:56 +01:00
Pavle Goloskokovic
ac95880995 Fixed play method docs 2018-02-18 15:57:48 +01:00
Pavle Goloskokovic
36475d5381 Fixed removeMarker method docs 2018-02-18 15:57:11 +01:00
Pavle Goloskokovic
9959d42fbc Fixed updateMarker method docs 2018-02-18 15:56:25 +01:00
Pavle Goloskokovic
af89faa83e Adjusted default marker duration value calculation 2018-02-18 15:55:56 +01:00
Pavle Goloskokovic
942fd09397 Fixed addMarker method docs 2018-02-18 15:55:08 +01:00
Pavle Goloskokovic
6a828b3943 Fixed currentMarker property docs 2018-02-18 15:54:36 +01:00
Pavle Goloskokovic
9adce2b40e Fixed markers property docs 2018-02-18 15:54:16 +01:00
Pavle Goloskokovic
05a20d6435 Removed duplicate docs 2018-02-18 15:53:47 +01:00
Pavle Goloskokovic
42fc672174 Fixed currentConfig property docs 2018-02-18 15:52:57 +01:00
Pavle Goloskokovic
1c66d38834 Fixed config property docs 2018-02-18 15:52:39 +01:00
Pavle Goloskokovic
82119c1601 Fixed constructor config param docs 2018-02-18 15:51:50 +01:00
Pavle Goloskokovic
99c5053acb Added BaseSound class description 2018-02-18 15:50:32 +01:00
Pavle Goloskokovic
28bf61f846 Added docs for defining SoundMarker custom type 2018-02-18 15:29:49 +01:00
Pavle Goloskokovic
8e2cb94c63 Added docs for defining SoundConfig custom type 2018-02-18 15:29:33 +01:00
Richard Davey
33873fe23d eslint fixes and removing type related console errors 2018-02-16 19:32:43 +00:00
Richard Davey
8f4a1012fd Updated jsdocs. 2018-02-13 01:39:22 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
fd9cf6c1f7 Added jsdocs 2018-02-12 15:18:31 +00:00
Richard Davey
403a9363fd Updated jsdocs 2018-02-12 13:48:47 +00:00
Richard Davey
65e5b14276 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-01-31 13:54:48 +00:00
Richard Davey
2a86400a28 Added in jsdocs 2018-01-31 13:54:44 +00:00
Pavle Goloskokovic
cfefbdab5a Resuming audio context passed to audio config before returning it from createAudioContext method 2018-01-31 14:09:01 +01:00
Pavle Goloskokovic
2f6d89c01a Destroy updates 2018-01-31 14:07:57 +01:00
Richard Davey
a802914243 Added in destroy methods for all managers and invoked them from Game 2018-01-31 03:38:10 +00:00
Pavle Goloskokovic
13b2c126bb ESLint fix 2018-01-26 15:40:45 +01:00
Pavle Goloskokovic
48f73e3b32 ESLint fix 2018-01-26 15:39:34 +01:00
Pavle Goloskokovic
6c5f72f86e ESLint fix 2018-01-26 15:38:00 +01:00
Pavle Goloskokovic
31fa6e9b31 ESLint fix 2018-01-26 15:37:31 +01:00
Pavle Goloskokovic
a703c3481e ESLint fix 2018-01-26 15:36:41 +01:00
Pavle Goloskokovic
7507d095af ESLint fix 2018-01-26 15:36:10 +01:00
Pavle Goloskokovic
06d31f1c0b ESLint fix 2018-01-26 15:35:09 +01:00
Pavle Goloskokovic
c20835bce8 Eslint fix 2018-01-26 15:34:18 +01:00
Pavle Goloskokovic
879f821bd4 Removed completed TODO 2018-01-26 15:29:31 +01:00
Pavle Goloskokovic
f3d2b9e510 Added loop event docs 2018-01-26 15:25:59 +01:00
Pavle Goloskokovic
3de4234db8 Added seek event docs 2018-01-26 15:25:45 +01:00
Pavle Goloskokovic
3d20e05641 Added volume event docs 2018-01-26 15:25:09 +01:00
Pavle Goloskokovic
c1b3a18ea0 Added mute event docs 2018-01-26 15:24:55 +01:00
Pavle Goloskokovic
07d06a58ad Added ended event docs 2018-01-26 15:24:40 +01:00
Pavle Goloskokovic
419761db15 Added looped event docs 2018-01-26 15:24:25 +01:00