sebpiq / WAAClock

A comprehensive event scheduling tool for Web Audio API.
MIT License
244 stars 32 forks source link

Puase callbackAtTime #17

Closed marcoturi closed 8 years ago

marcoturi commented 8 years ago

Is there away to just pause the method callbackAtTime ? Thanks for any suggetion.

sebpiq commented 8 years ago

Hi! What do you mean by "pause"? You can cancel the event, and reschedule it for later :

event.clear() // Pause event
event.schedule(time) // Restarts event at `time` (including repeats)
marcoturi commented 8 years ago

i found a better solution using suspend() and resume() on the context.

sebpiq commented 8 years ago

:+1: