RolandJansen / intermix

Typescript/Javascript framework for building sequencer-based audio apps
GNU Lesser General Public License v3.0
6 stars 0 forks source link

suspend/resume audio context #92

Open RolandJansen opened 6 years ago

RolandJansen commented 6 years ago

Suspend and resume the audio context to create a pause button. This should be used with createAudioWorker as an error will be thrown when suspend is called on an offline audio context. You can also pause single sounds with Sound.pause(). Please read <a href="https://developer.mozilla.org/de/docs/Web/API/AudioContext/suspend>dev docs