Commit graph

26 commits

Author SHA1 Message Date
Yotam Mann
99f73e47f7 Context.ready returns a promise when the AudioContext reports itself as 'running' 2017-10-25 17:59:03 -04:00
Yotam Mann
8c85f8bcf2 Context.dispose returns promise which resolves when the context is closed 2017-10-25 17:58:36 -04:00
Yotam Mann
cb2a982c39 linting 2017-10-21 19:02:46 -04:00
Yotam Mann
54bd67332f fixing logging when is supported and initialized 2017-09-29 00:06:00 -04:00
Yotam Mann
b7287a767b using global TONE_AUDIO_CONTEXT keeps multiple contexts from being created on the same page 2017-09-28 23:44:07 -04:00
Yotam Mann
a4032ad65c linting 2017-08-13 21:46:43 -04:00
Yotam Mann
5fe3e9106c using async callback for getting context
for classes that need it on init
2017-08-13 21:37:32 -04:00
Yotam Mann
e0fadfcb8e use the timeout callbacks update interval 2017-07-05 14:47:27 -04:00
Yotam Mann
dfdd665881 context takes an options object 2017-07-05 13:58:36 -04:00
Yotam Mann
c30b07cbd5 terminate web worker on dispose 2017-06-30 16:04:10 -04:00
Yotam Mann
3ece282d04 removing window debugging reference 2017-06-30 15:44:30 -04:00
Yotam Mann
68ce570476 Revert "without try/catch"
This reverts commit cf085112fe.
2017-06-30 15:38:01 -04:00
Yotam Mann
cf085112fe without try/catch 2017-06-30 15:31:30 -04:00
Yotam Mann
86698bb5d6 use setTimeout if Web Worker is not available
Addresses #208
2017-06-29 19:49:25 -04:00
Yotam Mann
207c4e66e4 removing lag checking 2017-06-29 15:58:35 -04:00
Yotam Mann
b670936c67 emit an event when a context is closed
to clean up Master/Transport and anything else static on the context
2017-06-19 17:51:03 -04:00
Yotam Mann
77d404963c lookAhead applied to all scheduled events
by placing it in the ‘now’ method instead of Tone.Clock
2017-05-28 21:44:56 -04:00
Yotam Mann
ceb209313e fixing disconnect from nonzero input/output 2017-05-01 15:49:35 -04:00
Yotam Mann
17510c8f9c latency hint should be "interactive" when set to fastest lookAhead 2017-05-01 13:55:21 -04:00
Yotam Mann
867798e55d properly disconnecting constant signals 2017-04-30 14:48:25 -04:00
Yotam Mann
4bd1044cb4 using only static type queries 2017-04-26 00:27:28 -04:00
Yotam Mann
edfa168713 moving to static type queries
i.e. this.isString -> Tone.isString
2017-04-26 00:24:19 -04:00
Yotam Mann
e66c515762 setTimeout method which is guaranteed by the clock source
also includes clearTimeout. API is similar to window.setTimeout, but
time is in seconds instead of milliseconds
2017-04-24 23:13:29 -04:00
Yotam Mann
f3cb7e577c only creating constant sources when required
optimization
2017-03-22 11:43:35 -04:00
Yotam Mann
10431589d2 moving shims to their respective files
hopefully simplifies maintenance
2017-03-13 01:12:20 -04:00
Yotam Mann
e08b7bc8fc AudioContext wrapping class 2017-02-18 19:47:28 -05:00