Yotam Mann
e1c66311db
Revert "fix for AudioBufferSourceNode stop time miscalculation"
2021-10-15 15:39:44 -04:00
Yotam Mann
3177cde6ec
Merge pull request #942 from marcelblum/buffer-player-timekeeping
...
fix for AudioBufferSourceNode stop time miscalculation
2021-10-15 15:29:22 -04:00
Yotam Mann
2667d44fe1
updating dispose
2021-10-13 13:11:20 -04:00
Marcel Blum
9e9b3d23f7
use now() instead of currentTime
2021-09-06 18:02:24 -04:00
Jack Anderson
998592fa3e
OneShotSource uses requestIdleCallback if avail
...
- This optimization allows the browser to tell Tone a more opportune
time to garbage collect during onended on OneShotSource. Otherwise, the 1
second timeout can trigger at an inopportune time.
2020-07-20 17:43:50 -07:00
Yotam Mann
a90669d87e
invoking callback slight further in the future
2019-12-23 19:17:06 -05:00
Yotam Mann
389ccf8722
using assert instead of this.assert
...
removing this.assert from Tone.js classes
2019-12-16 15:58:31 -05:00
Yotam Mann
09dc29191b
linting
2019-11-17 13:09:19 -05:00
Yotam Mann
b9619d8c68
removing unused variables
2019-10-31 15:43:16 -04:00
Yotam Mann
10469ba924
only dispose when things are in the only AudioContext
...
otherwise it leads to silence
addresses #551
2019-10-04 12:04:53 -04:00
Yotam Mann
3f6bcd9438
undoing additional lookAhead
...
turns out to not be necessary
2019-09-20 00:16:03 -04:00
Yotam Mann
70efec4637
add an additional lookAhead to the onended callback
...
this fixes an issue where the source was scheduled to stop in the time between the current time and the lookAhead time.
fixes #422
2019-09-19 18:22:44 -04:00
Yotam Mann
1bde88a19b
linting
2019-09-14 18:12:44 -04:00
Yotam Mann
261a5f4c3b
normalizing whitespace in comments
2019-09-14 16:39:18 -04:00
Yotam Mann
d57dd7e07a
updating docs
2019-08-27 08:47:52 -07:00
Yotam Mann
b58812b36a
adding stop and cancelStop logging
2019-08-13 19:34:39 -04:00
Yotam Mann
63d68f3446
onended callback passes in the file in the parameter
2019-08-09 23:02:28 -04:00
Yotam Mann
6e5e8b3399
using specific types
...
importing them so there are not multiple import type errors
2019-07-30 15:35:27 -04:00
Yotam Mann
97002d776f
using already computed fadeOut time
2019-07-24 19:30:31 -04:00
Yotam Mann
53df0f3caa
differentiating between BasicPlaybackState and PlaybackState
...
PlaybackState includes "paused"
2019-07-23 13:43:35 -04:00
Yotam Mann
ffad8c1475
confirm that an instance was disposed
...
implement Tone.prototype.dispose which flips a boolean wasDisposed.
2019-07-23 12:11:57 -04:00
Yotam Mann
23bbbcb887
moving onended functionality to OneShotSource class
2019-07-23 11:47:32 -04:00
Yotam Mann
4540533727
one shot source sets up fadeIn/Out and curve
2019-07-22 16:16:54 -04:00
Yotam Mann
5d36e4a523
only use relative imports
2019-07-17 13:12:21 -04:00
tambien
e87d723ec8
cancelStop does not need to be private
2019-06-19 15:52:47 -04:00
tambien
285e34c051
updaing OneShotSource and extending classes
2019-06-17 21:52:43 -04:00
tambien
d40f6c35b5
use local context when creating gain
2019-05-25 15:37:56 -04:00
tambien
730a818bcb
organizing into sub folders
2019-05-23 14:00:49 -04:00