Commit graph

56 commits

Author SHA1 Message Date
Pavle Goloskokovic
934b715314 Added pauseAll method docs 2018-01-06 17:55:34 +01:00
Pavle Goloskokovic
84cccfa2dc Destroying removed sounds in removeByKey method 2018-01-06 17:55:12 +01:00
Pavle Goloskokovic
261452a893 Updated removeByKey method docs 2018-01-06 17:52:34 +01:00
Pavle Goloskokovic
89ad4f1b39 Destroying removed sound in remove method 2018-01-06 17:49:42 +01:00
Pavle Goloskokovic
39a5c2907f Updated remove method docs 2018-01-06 17:49:17 +01:00
Pavle Goloskokovic
d8eb945f84 Added playAudioSprite method docs 2018-01-06 17:48:31 +01:00
Pavle Goloskokovic
a548e4d873 Added play method docs 2018-01-06 17:47:41 +01:00
Pavle Goloskokovic
bacce96541 Updated addAudioSprite method docs 2018-01-06 17:44:27 +01:00
Pavle Goloskokovic
8f3a7e8449 Added add method docs 2018-01-06 17:42:20 +01:00
Pavle Goloskokovic
a570710a09 Updated properties docs 2018-01-06 17:40:23 +01:00
Pavle Goloskokovic
cc25f7052f Added class constructor docs 2018-01-06 17:38:17 +01:00
Pavle Goloskokovic
7c2bd98e44 Simplified logic for removal of destroyed sounds 2018-01-05 20:14:34 +01:00
Pavle Goloskokovic
78c74739fc Fixed sounds array truncate logic in update method 2018-01-05 19:35:44 +01:00
Pavle Goloskokovic
7e223685b3 Dispatching event when stopAll is called 2018-01-04 20:01:19 +01:00
Pavle Goloskokovic
734ce7e628 Dispatching event when resumeAll is called 2018-01-04 20:01:07 +01:00
Pavle Goloskokovic
4c172b6ffa Dispatching event when pauseAll is called 2018-01-04 20:00:43 +01:00
Pavle Goloskokovic
ec657a6517 Using forEachActiveSound method when updating global rate and detune settings 2018-01-04 19:53:47 +01:00
Pavle Goloskokovic
55f8ca51af Using forEachActiveSound method when destroying BaseSoundManager 2018-01-04 19:53:15 +01:00
Pavle Goloskokovic
2572b01e61 Using forEachActiveSound method for global playback methods 2018-01-04 19:52:44 +01:00
Pavle Goloskokovic
c424b61939 Added utility method forEachActiveSound that enables traversing only active (not destroyed) sounds 2018-01-04 19:51:54 +01:00
Pavle Goloskokovic
b3fad218bc Added logic for removing destroyed sounds from sounds array on BaseSoundManager update call 2018-01-04 19:50:06 +01:00
Pavle Goloskokovic
cf31ed9a4d Implemented destroy method for BaseSoundManager class 2018-01-04 19:48:00 +01:00
Pavle Goloskokovic
c919d331a6 Added docs for remove and removeByKey methods 2018-01-04 19:44:22 +01:00
Pavle Goloskokovic
267cfed1d0 Implemented removeByKey method 2018-01-04 19:43:41 +01:00
Pavle Goloskokovic
5f56d038f5 Implemented remove method 2018-01-04 19:41:43 +01:00
Pavle Goloskokovic
1a38273cd8 Implemented resumeAll method 2018-01-04 19:32:10 +01:00
Pavle Goloskokovic
17dee3cd8d Implemented pauseAll method 2018-01-04 19:30:29 +01:00
Pavle Goloskokovic
13f752baca Implemented global playAudioSprite method to enable playing audiosprite sprites on the fly 2018-01-04 19:28:34 +01:00
Pavle Goloskokovic
6a64693257 Updated global play method to accept sound config and sound marker as second argument 2018-01-04 19:27:12 +01:00
Pavle Goloskokovic
66936490a1 Implemented global play method to enable playing sounds on the fly 2018-01-04 19:24:28 +01:00
Pavle Goloskokovic
70b31c7273 Implemented stopAll method 2018-01-04 15:59:44 +01:00
Pavle Goloskokovic
4ff8fca1c5 Instantiating event dispatcher before setting any property values 2018-01-03 21:55:51 +01:00
Pavle Goloskokovic
c293d4a516 Dispatching event when global detune value changes 2018-01-03 21:29:00 +01:00
Pavle Goloskokovic
f6976daf2b Dispatching event when global rate value changes 2018-01-03 21:28:45 +01:00
Pavle Goloskokovic
d25b714e7e Added global playAudioSprite method that enables playing sounds from audiosprite on the fly 2018-01-03 20:35:28 +01:00
Pavle Goloskokovic
912a737561 Added global play method that enables playing sounds on the fly 2018-01-03 20:32:31 +01:00
Pavle Goloskokovic
429d86ba31 Added TODO for handling removed or destroyed sounds 2017-12-10 13:18:03 +01:00
Pavle Goloskokovic
de1657de01 Updated comments with private and readonly descriptors 2017-12-04 22:09:41 +01:00
Pavle Goloskokovic
42b47d2674 Fixed few references 2017-11-30 22:56:54 +01:00
Pavle Goloskokovic
9e90b9eec2 Moved logic for audio sprite creation to BaseSoundManager addAudioSprite method 2017-11-30 22:14:20 +01:00
Pavle Goloskokovic
28ae0811e6 Defining detune property in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations 2017-11-27 17:35:35 +01:00
Pavle Goloskokovic
1c1e75ac85 Defining rate property in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations 2017-11-27 17:35:09 +01:00
Pavle Goloskokovic
27ad50d276 Setting _detune field in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations 2017-11-27 17:34:27 +01:00
Pavle Goloskokovic
92ac9d41c5 Setting _rate field in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations 2017-11-27 17:33:37 +01:00
Pavle Goloskokovic
94e834fa96 Updating all sounds on sound manager update 2017-11-26 16:59:12 +01:00
Pavle Goloskokovic
ab9a9c951f bound onBlur and onFocus methods to corresponding game events 2017-11-21 18:06:18 +01:00
Pavle Goloskokovic
dd824c4a79 added onBlur and onFocus methods to BaseSoundManager 2017-11-21 18:04:54 +01:00
Pavle Goloskokovic
f00421f112 changed muteOnPause flag to be pauseOnBlur for BaseSoundManager 2017-11-21 18:02:24 +01:00
Pavle Goloskokovic
52cbffcf2e added detune field to BaseSoundManager 2017-11-16 17:21:49 +01:00
Pavle Goloskokovic
dd17f6083f moved sounds array declaration above other properties 2017-11-16 16:04:07 +01:00