Skip to main content

resumeAllSounds

resumeAllSounds(): void;

Resume all paused sounds. Each sound continues from the position where it was paused. Has no effect on sounds that are already playing or stopped.


Example

await soundManager.loadSounds([
{ id: 'tokyo-train', url: 'tokyo-train-melody.mp3' },
{ id: 'bells-melody', url: 'bells-melody.mp3' },
{ id: 'techno-tune', url: 'techno-tune.mp3' }
]);

soundManager.play('tokyo-train', { loop: true });
soundManager.play('bells-melody', { loop: true });
soundManager.play('techno-tune', { loop: true });

// Pause all
soundManager.pauseAllSounds();

// Later: resume all from their saved positions
soundManager.resumeAllSounds();
Tokyo Trainstopped
Bells Melodystopped
Techno Tunestopped
Try it: Click "Play All" to hear all three sounds together. Use Pause/Resume/Stop to control them simultaneously.