resumeContext
resumeContext(): Promise<void>;
Resume the audio context, restarting audio processing. This restores playback after a suspendContext call. Has no effect if the context is already running.
Example
await soundManager.loadSounds([{ id: 'piano', url: 'piano.mp3' }]);
soundManager.play('piano', { loop: true });
// Suspend to free resources
await soundManager.suspendContext();
// Later: resume to continue from the same position
await soundManager.resumeContext();
AudioContext State
unknown
Try it: Play the piano, then suspend the AudioContext — audio processing stops completely. Resume to continue. Use
suspendContext() when the user switches away, resumeContext() when they return.