Pavle Goloskokovic
|
8ae7ac4527
|
Updated properties docs
|
2018-01-06 19:14:43 +01:00 |
|
Pavle Goloskokovic
|
6e306544fe
|
Added class constructor docs
|
2018-01-06 19:14:17 +01:00 |
|
Pavle Goloskokovic
|
6c7b73b0dc
|
Removed webkit flag as it is not used (polyfill handles the differences)
|
2018-01-06 15:13:56 +01:00 |
|
Pavle Goloskokovic
|
6b291e890e
|
Reverting compatibility changes as they are handled by a polyfill
|
2018-01-06 15:12:39 +01:00 |
|
Pavle Goloskokovic
|
b151ba518a
|
Reverting compatibility changes as they are handled by a polyfill
|
2018-01-06 15:12:12 +01:00 |
|
Pavle Goloskokovic
|
2d2bf4c0e3
|
Added check for touch events when trying to unlock web audio on iOS devices
|
2018-01-06 15:03:28 +01:00 |
|
Pavle Goloskokovic
|
01e5274c76
|
Removed completed webkit implementation compatibility TODO
|
2018-01-06 15:02:30 +01:00 |
|
Pavle Goloskokovic
|
0645145010
|
Added fallback to noteOff method call for webkit implementation when stopping loop buffer source
|
2018-01-06 15:01:41 +01:00 |
|
Pavle Goloskokovic
|
7f04143b7c
|
Added fallback to noteOff method call for webkit implementation when stopping buffer source
|
2018-01-06 15:01:24 +01:00 |
|
Pavle Goloskokovic
|
cd0c6b27a7
|
Added fallback to noteGrainOn method call for webkit implementation when starting loop buffer source
|
2018-01-06 15:00:43 +01:00 |
|
Pavle Goloskokovic
|
00c90eb81a
|
Added fallback to noteGrainOn method call for webkit implementation when starting buffer source
|
2018-01-06 14:59:56 +01:00 |
|
Pavle Goloskokovic
|
9665ab2f7c
|
Added fallback to createGainNode method call for webkit implementation when creating global volume node
|
2018-01-06 14:58:15 +01:00 |
|
Pavle Goloskokovic
|
e66f1b7030
|
Added fallback to createGainNode method call for webkit implementation when creating global mute node
|
2018-01-06 14:57:50 +01:00 |
|
Pavle Goloskokovic
|
e635351f0b
|
Added fallback to createGainNode method call for webkit implementation when creating sound volume node
|
2018-01-06 14:56:59 +01:00 |
|
Pavle Goloskokovic
|
a508d7ef4c
|
Added fallback to createGainNode method call for webkit implementation when creating sound gain node
|
2018-01-06 14:56:39 +01:00 |
|
Pavle Goloskokovic
|
3b5289a733
|
Dispatching event when global volume value changes
|
2018-01-03 21:28:13 +01:00 |
|
Pavle Goloskokovic
|
3967a111a4
|
Dispatching event when global mute value changes
|
2018-01-03 21:27:53 +01:00 |
|
Pavle Goloskokovic
|
d73208349f
|
Dispatching event when sound seek changes
|
2018-01-03 21:27:09 +01:00 |
|
Pavle Goloskokovic
|
dc796465b7
|
Dispatching event when sound detune value changes
|
2018-01-03 21:26:49 +01:00 |
|
Pavle Goloskokovic
|
de8919645a
|
Dispatching event when sound rate value changes
|
2018-01-03 21:26:31 +01:00 |
|
Pavle Goloskokovic
|
e0591df9fc
|
Dispatching event when sound volume value changes
|
2018-01-03 21:26:15 +01:00 |
|
Pavle Goloskokovic
|
0c70ae236e
|
Dispatching event when sound mute value changes
|
2018-01-03 21:26:01 +01:00 |
|
Pavle Goloskokovic
|
4210898a24
|
Replaced stop method call with logic needed to stop sound in order to avoiding dispatching both stop and ended events
|
2018-01-03 21:23:41 +01:00 |
|
Pavle Goloskokovic
|
89fce9135a
|
Dispatching event when sound ends
|
2018-01-03 21:22:07 +01:00 |
|
Pavle Goloskokovic
|
3356fc2d92
|
Dispatching event when calling stop method
|
2018-01-03 21:20:40 +01:00 |
|
Pavle Goloskokovic
|
99accdbbd0
|
Dispatching event when calling resume method
|
2018-01-03 21:20:22 +01:00 |
|
Pavle Goloskokovic
|
fbc7264d4c
|
Dispatching event when calling pause method
|
2018-01-03 21:20:02 +01:00 |
|
Pavle Goloskokovic
|
17985a0147
|
Dispatching event when calling play method
|
2018-01-03 21:19:44 +01:00 |
|
Pavle Goloskokovic
|
e36e18977e
|
Dispatching loop event when sound loops
|
2017-12-22 15:47:15 +01:00 |
|
Pavle Goloskokovic
|
97e648bea6
|
Removed debug logging
|
2017-12-22 15:46:05 +01:00 |
|
Pavle Goloskokovic
|
c569aabc73
|
Resetting rate updates on sound loop
|
2017-12-22 15:45:28 +01:00 |
|
Pavle Goloskokovic
|
5635c04da0
|
Stopping and removing loop source when stopping and removing main source
|
2017-12-22 15:42:45 +01:00 |
|
Pavle Goloskokovic
|
c15afd2d29
|
Setting loopTime to 0 when stopping and resetting loop source
|
2017-12-22 15:42:09 +01:00 |
|
Pavle Goloskokovic
|
9b1db4257c
|
Setting playTime and startTime properties to loopTime value whe sound loops
|
2017-12-22 15:40:58 +01:00 |
|
Pavle Goloskokovic
|
c1688ddbfe
|
Setting loopTime to loop source start call when parameter value when creating it
|
2017-12-22 15:37:36 +01:00 |
|
Pavle Goloskokovic
|
54de230ac4
|
Added loopTime property to keep track of the time at which the sound loop source should actually start playback based on BaseAudioContext.currentTime value
|
2017-12-22 15:35:57 +01:00 |
|
Pavle Goloskokovic
|
34d0e4f7a6
|
Setting loop source to be main source when sound loops and creating next loop source
|
2017-12-22 15:33:19 +01:00 |
|
Pavle Goloskokovic
|
cd6b6bf574
|
Using the same current time value for updating source playback rate and adding rate update item to the array
|
2017-12-22 15:29:56 +01:00 |
|
Pavle Goloskokovic
|
13d891893c
|
Setting correct playback rate to loop source buffer when creating it
|
2017-12-22 15:27:42 +01:00 |
|
Pavle Goloskokovic
|
39f95cf6b4
|
Resetting loop source when updating sound playback rate if it is playing
|
2017-12-22 15:24:25 +01:00 |
|
Pavle Goloskokovic
|
187379ace2
|
Always topping and removing loop buffer source when setting loop property as it needs to be reset even if setting it to true
|
2017-12-22 15:21:21 +01:00 |
|
Pavle Goloskokovic
|
4d95cac657
|
Stopping and removing loop buffer source when setting loop property to false
|
2017-12-22 15:20:27 +01:00 |
|
Pavle Goloskokovic
|
b9ec8f2dea
|
Added method for stopping and removing loop buffer source
|
2017-12-22 15:18:35 +01:00 |
|
Pavle Goloskokovic
|
15db2bac74
|
Moved logic for calculating loop time into separate method
|
2017-12-21 17:21:59 +01:00 |
|
Pavle Goloskokovic
|
4f6a665451
|
Moved loop buffer source creation and starting logic into separate method
|
2017-12-21 17:19:45 +01:00 |
|
Pavle Goloskokovic
|
46a99af255
|
Calculating correct value for when parameter for loop buffer source start method
|
2017-12-21 17:17:10 +01:00 |
|
Pavle Goloskokovic
|
b559985b31
|
Creating and starting loop buffer source only if sound is currently playing
|
2017-12-21 17:10:57 +01:00 |
|
Pavle Goloskokovic
|
4538ee9af1
|
Calculating when, offset and duration parameters for buffer source start method and calling it in loop setter method
|
2017-12-21 17:08:29 +01:00 |
|
Pavle Goloskokovic
|
1779bcb853
|
Moved loop source creation logic into loop property setter
|
2017-12-21 17:04:01 +01:00 |
|
Pavle Goloskokovic
|
8e9cc41b36
|
Moved sound buffer source creation logic into separate method to be able to reuse it
|
2017-12-21 17:02:44 +01:00 |
|
Pavle Goloskokovic
|
e612e2eaae
|
Creating loop buffer source if looping is set in config
|
2017-12-21 16:58:43 +01:00 |
|
Pavle Goloskokovic
|
636275bc85
|
Added loop audio buffer source field
|
2017-12-21 16:56:19 +01:00 |
|
Pavle Goloskokovic
|
b2d0c72249
|
Added condition for handling looping in update method
|
2017-12-21 16:55:05 +01:00 |
|
Pavle Goloskokovic
|
a766ff9c2c
|
Setting hasLooped flag when sound has ended and is supposed to loop
|
2017-12-21 16:53:03 +01:00 |
|
Pavle Goloskokovic
|
879e52a735
|
Added hasLooped property for WebAudioSound class
|
2017-12-21 16:50:44 +01:00 |
|
Pavle Goloskokovic
|
287dc70d61
|
Simplified rate updates logic in setRate method
|
2017-12-14 14:09:00 +01:00 |
|
Pavle Goloskokovic
|
06362216d1
|
Fixed issue with changing rate on a sound with delayed playback
|
2017-12-14 14:04:05 +01:00 |
|
Pavle Goloskokovic
|
7adb101d7e
|
Updating rate updates correctly if delay has not yet elapsed
|
2017-12-13 22:49:13 +01:00 |
|
Pavle Goloskokovic
|
8ea3dbd6af
|
Removed completed TODO
|
2017-12-13 22:48:27 +01:00 |
|
Pavle Goloskokovic
|
2126381bdd
|
Updated startTime property description
|
2017-12-13 22:48:05 +01:00 |
|
Pavle Goloskokovic
|
b21331fb1c
|
Returning difference between playTime and startTime from seek getter if delay has not yet elapsed
|
2017-12-13 22:47:39 +01:00 |
|
Pavle Goloskokovic
|
e173cac7d5
|
Ignoring seek setter calls on delayed playing sound if delay has not yet elapsed
|
2017-12-13 22:46:02 +01:00 |
|
Pavle Goloskokovic
|
7ee1f78f18
|
Ignoring resume calls on delayed playing sound if delay has not yet elapsed
|
2017-12-13 22:44:59 +01:00 |
|
Pavle Goloskokovic
|
a17ffeb5b9
|
Ignoring pause calls on delayed playing sound if delay has not yet elapsed
|
2017-12-13 22:43:42 +01:00 |
|
Pavle Goloskokovic
|
1993aabbf4
|
Resetting startTime when stopping buffer source
|
2017-12-13 22:42:16 +01:00 |
|
Pavle Goloskokovic
|
b087a92612
|
Setting startTime to value when sound should start playing and playTime to correct relative value
|
2017-12-13 22:41:33 +01:00 |
|
Pavle Goloskokovic
|
d4645313f4
|
Added startTime property to keep track of the time when the sound actually started playing music
|
2017-12-13 22:39:24 +01:00 |
|
Pavle Goloskokovic
|
52d2be65f3
|
Updated playTime property description
|
2017-12-13 22:36:57 +01:00 |
|
Pavle Goloskokovic
|
ca3a4b9373
|
Renaming startTime property to playTime
|
2017-12-13 22:32:34 +01:00 |
|
Pavle Goloskokovic
|
e8617a87a3
|
Taking delay config setting into account when playing sound source
|
2017-12-13 22:29:55 +01:00 |
|
Pavle Goloskokovic
|
0e5b2594c5
|
Removing unneeded logic from loop property setter
|
2017-12-12 20:20:45 +01:00 |
|
Pavle Goloskokovic
|
95abc59e3e
|
Resetting config when looping sound in order to reset any non-zero seek value
|
2017-12-12 20:18:51 +01:00 |
|
Pavle Goloskokovic
|
bb281605c6
|
Checking if looping is enabled when sound ends and if it is creating and playing source sound again
|
2017-12-12 20:17:42 +01:00 |
|
Pavle Goloskokovic
|
1f5d4f2769
|
Removed createBufferSource method since its logic was used only in one place
|
2017-12-12 20:13:58 +01:00 |
|
Pavle Goloskokovic
|
67477708b2
|
Ditching loopSource approach as logic would be too complicated when taking playback rate into account
|
2017-12-12 20:11:46 +01:00 |
|
Pavle Goloskokovic
|
c06a2bc78c
|
Setting loop source rate in setRate method if looping is enables
|
2017-12-12 20:00:49 +01:00 |
|
Pavle Goloskokovic
|
dbc4b8b6f2
|
Renamed createLoopBufferSource to createAndStartLoopBufferSource and added some logic for starting loop source
|
2017-12-12 20:00:04 +01:00 |
|
Pavle Goloskokovic
|
d13bdfde62
|
Added createBufferSource to reuse buffer source creation logic
|
2017-12-12 19:58:44 +01:00 |
|
Pavle Goloskokovic
|
648187295e
|
Added method for creating loop buffer source
|
2017-12-12 19:56:18 +01:00 |
|
Pavle Goloskokovic
|
d788ed3a44
|
Stop and remove loopSource in stopAndRemoveBufferSource
|
2017-12-12 19:52:24 +01:00 |
|
Pavle Goloskokovic
|
bca40391fe
|
If value set to loop property is the same as config value skip any further commands
|
2017-12-12 19:47:57 +01:00 |
|
Pavle Goloskokovic
|
c8f43e7a5a
|
Added a bit of logic and couple of TODOs to handle loop source when setting loop property value
|
2017-12-12 19:46:08 +01:00 |
|
Pavle Goloskokovic
|
bcda86c566
|
Setting config value when setting loop property
|
2017-12-12 19:44:41 +01:00 |
|
Pavle Goloskokovic
|
48f86abb65
|
Returning config value when getting loop property
|
2017-12-12 19:43:21 +01:00 |
|
Pavle Goloskokovic
|
02962f316e
|
Defined loop property for WebAudioSound class
|
2017-12-12 19:42:21 +01:00 |
|
Pavle Goloskokovic
|
121672d442
|
Added loopSource field for timed loop sound source
|
2017-12-12 19:40:36 +01:00 |
|
Pavle Goloskokovic
|
c9868d5408
|
Implemented destroy method for WebAudioSound class
|
2017-12-10 13:17:39 +01:00 |
|
Pavle Goloskokovic
|
b5e8a60530
|
Saving seek value only when sound is playing or paused, for consistency
|
2017-12-07 20:58:54 +01:00 |
|
Pavle Goloskokovic
|
8d161ac06d
|
Returning config value when paused and 0 when stopped when getting seek value
|
2017-12-07 20:58:07 +01:00 |
|
Pavle Goloskokovic
|
75d480ffba
|
Added protected access modifier to overridden applyConfig method
|
2017-12-07 20:14:58 +01:00 |
|
Pavle Goloskokovic
|
c3107ca629
|
Setting paused time (seek) before calling stopAndRemoveBufferSource since getCurrentTime depends on startTime value and it gets reset in stopAndRemoveBufferSource method
|
2017-12-07 20:13:52 +01:00 |
|
Pavle Goloskokovic
|
039ed52cf2
|
Resetting startTime value inside of stopAndRemoveBufferSource method to have more consistent sound state
|
2017-12-07 20:11:09 +01:00 |
|
Pavle Goloskokovic
|
58d0be5279
|
Setting duration properties before calling super method
|
2017-12-06 18:06:39 +01:00 |
|
Pavle Goloskokovic
|
99aa2b22c4
|
Resetting sound playback at seek time if sound is playing
|
2017-12-05 20:22:49 +01:00 |
|
Pavle Goloskokovic
|
06b7ad91fd
|
Updated a TODO to add delay config setting
|
2017-12-05 20:21:14 +01:00 |
|
Pavle Goloskokovic
|
b3f5b03e6f
|
Calling getCurrentTime directly when setting seek as paused time since we don't want to self-assign it
|
2017-12-05 20:20:33 +01:00 |
|
Pavle Goloskokovic
|
4e0c274ca4
|
No need to reset config seek value since it is reset in resetConfig method
|
2017-12-05 20:19:02 +01:00 |
|
Pavle Goloskokovic
|
44ce0edd82
|
Moved the same logic for calculating offset duration and startTime into createAndStartBufferSource method
|
2017-12-05 20:17:14 +01:00 |
|
Pavle Goloskokovic
|
25a11687c2
|
Replaced pausedTime field with config seek value
|
2017-12-05 20:01:06 +01:00 |
|
Pavle Goloskokovic
|
f347bcc45a
|
Limiting seek value to be between 0 and current duration in seek property setter
|
2017-12-05 19:57:07 +01:00 |
|