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
Pavle Goloskokovic
716a1d4652
updated field descriptions for BaseSoundManager class
2017-11-16 15:23:35 +01:00
Pavle Goloskokovic
ca1b81ae12
added sounds array initialisation
2017-11-14 17:21:58 +01:00
Pavle Goloskokovic
d43eb0de50
added basic methods and properties to the BaseSoundManager class
2017-11-13 19:39:32 +01:00
Pavle Goloskokovic
0fe8757054
moved create method meant for instantiating global sound manager object form BaseSoundManager class to dedicated SoundManagerCreator class
...
moved setting local game reference from WebAudioSoundManager class to BaseSoundManager class constructor
fixed bug with audio context creation condition in WebAudioSoundManager class
2017-11-10 19:05:26 +01:00
Pavle Goloskokovic
0b348f83ec
updated conditional logic for choosing correct sound manager and audio files implementation
2017-11-10 13:36:13 +01:00
Pavle Goloskokovic
24dfdb1e54
renamed SoundManager class to BaseSoundManager
2017-11-10 13:05:29 +01:00