Paul Kaplan
f4e484258a
Update stop duration and tests
...
Remove test for ramping because the test audio api doesnt ramp correctly without prior sets
2019-09-25 14:14:48 -04:00
Eric Rosenbaum
59ff2ad927
Merge pull request #101 from mzgoddard/clipless-firefox
...
schedule stop DECAY in the future for firefox
2018-06-25 15:39:17 -04:00
Michael "Z" Goddard
e01a32a83d
use AudioEngine.currentTime and DECAY_WAIT in PanEffect, etc
2018-06-25 14:27:21 -04:00
Michael "Z" Goddard
ee73fd7a8a
rename DECAY_* constants to DECAY_WAIT and DECAY_DURATION
2018-06-25 14:01:15 -04:00
Michael "Z" Goddard
fb355abb7d
schedule stop DECAY in the future for firefox
...
Firefox at this time cannot smoothly schedule audio parameter changes
to happen immediately. Immediately scheduled changes clip when firefox
tries to catch up. Smoothly fading out a sound immediately instead of
clipping the end of the sound, in firefox at this time clips the sound
between where the fade out starts and where firefox catches up and
finishes the scheduled fade.
2018-06-25 13:15:19 -04:00
Michael "Z" Goddard
97e2996090
add missing docs: SoundPlayer, AudioEngine, Effect.name
2018-06-22 14:43:37 -04:00
Corey Frang
ea6093835c
mv GreenPlayer.js SoundPlayer.js
2018-06-21 16:56:11 -04:00
Corey Frang
45a7d1abef
rm AudioPlayer and SoundPlayer
2018-06-21 16:56:11 -04:00
Eric Rosenbaum
283049e514
Safely stop sounds in safari
2017-08-22 11:33:18 -04:00
Eric Rosenbaum
0bc892f03d
Use “audioContext” to refer to webAudioContext
2017-06-22 10:51:57 -04:00
Eric Rosenbaum
90af375b03
Use arrow functions
2017-06-21 11:23:32 -04:00
Eric Rosenbaum
03034dd2f7
Remove dependency on Tone.js
2017-06-20 16:50:02 -04:00
Eric Rosenbaum
e8864387c6
Use native audio buffer source node
...
Instead of the Tone js wrapper for it, because a recent update to Tone changed the ‘onended’ callback in a way that broke our “play sound until done” block.
2017-04-18 18:40:06 -04:00
Ray Schamp
9874cf006f
Update to use ES6 class syntax
2017-04-18 12:22:06 -04:00
Ray Schamp
e50ba400f9
Update syntax for eslint-config-scratch
2017-04-17 11:52:12 -04:00
Ray Schamp
ee8462f53f
Pass with eslint --fix
2017-04-17 11:52:12 -04:00
Eric Rosenbaum
1c4709e5b9
bind to set isPlaying flag on ended
2017-02-02 15:25:26 -05:00
Eric Rosenbaum
1a26fecca1
Comment all the things!
2017-02-02 14:53:17 -05:00
Eric Rosenbaum
a1baa94d3c
initialization
2017-02-02 14:49:17 -05:00
Eric Rosenbaum
088efdeb0e
sounds track playing state
2017-01-30 18:13:18 -05:00
Eric Rosenbaum
7f741a509c
sounds stop and restart when played again
2017-01-30 18:12:52 -05:00
Eric Rosenbaum
bee8210764
use promise on playback finished
2017-01-30 11:26:55 -05:00
Eric Rosenbaum
002a378d97
soundplayers are explicitly connected to output node when created
2017-01-30 11:25:43 -05:00
Eric Rosenbaum
b5d513f2b2
add isplaying property, cleanup
2016-11-21 15:57:34 -05:00
Eric Rosenbaum
897fd68c90
wip on new soundplayer object
2016-11-21 12:40:35 -05:00