WebAudio suspend/resume Sample

Available in Chrome 41+

These methods support suspending and resuming a whole AudioContext to allow applications to pause the audio device when not needed. This reduces CPU usage and power consumption, as the audio device can be closed.

Start and stop a single tone. When this tab is hidden (e.g., open a new tab, hiding this tab), the AudioContext will be suspended; when this tab is reopened, the context will be resumed.