Commit graph

15 commits

Author SHA1 Message Date
Yotam Mann
3196b2d68e
Merge pull request #968 from marcelblum/buffer-player-timekeeping
fix attempt #2 for AudioBufferSourceNode stop time miscalculation, with updated tests
2022-01-15 09:53:08 -05:00
Yotam Mann
444d6179c4 Don't reschedule source when offset is very small
This offset is due to floating point error

Fixes #999
Fixes #944
2021-12-19 11:21:27 -05:00
Marcel Blum
8c47a42290 test fix for #912 2021-12-01 11:54:32 -05:00
Yotam Mann
d788183425 removing computedOffset calculation when synced
fixes #721
2020-09-23 22:11:38 -04:00
Yotam Mann
766ef638d3 making sure that the onerror returns the error 2020-01-30 16:15:28 -05:00
Yotam Mann
0bc28e742a using url instead of buffer makes it more consistent with other url loading APIs
feat: adding onerror to ToneBufferSource and Player
2020-01-29 23:34:05 -05:00
Yotam Mann
7606a5d28b updating test name 2019-12-19 17:13:14 -05:00
Yotam Mann
abee380fc2 reverse works at different sampling rates 2019-11-18 15:11:57 -05:00
Yotam Mann
e055abf172 fixing test to work at different sample rates 2019-11-18 14:52:00 -05:00
Yotam Mann
e8e785ffdd linting 2019-09-15 23:32:40 -04:00
Yotam Mann
511d98564b adding some tests for full coverage 2019-08-12 09:37:48 -04:00
Yotam Mann
fdbf9d64bf removing 'only' from tests 2019-08-09 23:11:51 -04:00
Yotam Mann
d507188149 Player.onstop is invoked when the buffer has stopped
fixes #519
2019-08-09 23:07:09 -04:00
Yotam Mann
474ec85408 fixing default duration
made it so that the player never started when Player was synced.
2019-07-30 14:51:07 -04:00
Yotam Mann
c31aa5fa77 converting Player to ts 2019-07-23 11:27:55 -04:00